Skip to content

Extract the expected keys from a deserializable struct #122

Answered by joshka
nitnelave asked this question in Q&A
Discussion options

You must be logged in to vote

Try

let figment = Figment::from(Serialized::defaults(MyConfig::default()));
dbg!(&figment.data()?[figment.profile()]); // or iterate over the keys here

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nitnelave
Comment options

@joshka
Comment options

Answer selected by nitnelave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants