Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(receipt, result): easier receipt utils #29

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

hannahhoward
Copy link
Member

Goals

Make it easier to work with consuming receipts.

This came up trying to write a client for indexing service -- having to define the whole result schema seems off.

Implementation

Provides a number of simple improvements working with receipts and results:

  • simple Unwrap for results
  • create receipt reader from success and failure types
  • easy way to get back to an actual error from a failure model.

provides a number of simple improvements working with receipts
Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh yeah this is really nice 👍

@hannahhoward hannahhoward merged commit 704b565 into main Oct 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants