Skip to content

Unified return value (record + meta) #11

@kuy

Description

@kuy

Actual Client::read() returns a tuple of data and meta. This is not ergonomic API. So I want to unify them and change its signature to return a single value.

Before

let (record, meta) = client.read().id("...");
println!("name={}, created={}", record.name, meta.created_on);

After

let record = client.read().id("...");
println!("name={}, created={}", record.name, record.created_on);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions