Key-value serializer adapters #426
No reviewers
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!426
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/kv-downcast"
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?
This PR does two things:
Value::downcast_refmethod that was missed in #423Sources can be treated like a map or sequence for formatting or serializationThis means
Logimplementors can now write something like:to define a type that can be serialized using
serdeas a map with key values flattened.Would be nice to add that code sample to the kv docs as it's not super obvious how to use it otherwise