Skip to content

Consume objects #11

Description

@minecrawler

In Rust, Result objects are usually consumed by certain methods. That behavior should be simulated by adding a consumed field of type bool. If that flag is set, an Error will be thrown (cannot use consumed objects). Also, the API will create new objects instead of modifying the current one.

Imho, this could be done with a wrapper. That would allow safe development and performance in production (given TDD and unit tests are performed)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions