Add serde impls for LogLevel/LogLevelFilter #143
Labels
No labels
bug
duplicate
easy
enhancement
help wanted
invalid
question
rfc
structured-logging
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-rust-lang/log#143
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I would like some guidance before making a pull-request for this.
In your opinion, should it use #derive (with a optinal dependency) as documented https://serde.rs/derive.html or should it implement directly the Serialive and Deserialize impls as documented https://serde.rs/custom-serialization.html
I would favor the former as is avoids adding any dependency.
You will need at least Deserialize to be custom to match the case insensitive behavior of FromStr. And Serialize is only going to be a few lines so not worth pulling in serde_derive for that, in my opinion.
I filed #183 to follow up on whether all caps is the best choice for the Serialize impls.