-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Cherry pick nested value from JSON-ish data and collect results into a tuple. Easily implementable in terms of query_value, but we need some optimization?
syntax draft:
pick_values!(|obj| (.foo, .bar, .baz[0]))
->
// Some((...)) if all query results in Some, otherwise None
(|| Some(
(query_value!(obj.foo)?, query_value!(obj.bar)?, query_value!(obj.baz[0])?)
)()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels