Skip to content

Add Structable::get for accessing fields-by-name.#102

Open
jswrenn wants to merge 1 commit intotokio-rs:masterfrom
jswrenn:structable-get
Open

Add Structable::get for accessing fields-by-name.#102
jswrenn wants to merge 1 commit intotokio-rs:masterfrom
jswrenn:structable-get

Conversation

@jswrenn
Copy link
Copy Markdown

@jswrenn jswrenn commented Aug 30, 2022

BREAKING!

Adds get method to Structable for getting the Value of a field by name. Also introduces Field enum, so that get works for both positional and named fields.

@jswrenn
Copy link
Copy Markdown
Author

jswrenn commented Aug 30, 2022

(This needs some additional testing before it's ready to be merged.)

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.

1 participant