Instead of applying a `#[serde(rename = "foo")]` or `#[strum(serialize = "foo")]` to each field of a struct or variants of an enum, apply the appropriate `#[serde(rename_all = "style")]` or `#[strum(serialize_all = "style")]` to the struct/enum. In addition, in the places where the `lowercase` style is used and all the fields/variants are a single word, replace that with `snake_case`, since that seems to be the default everywhere with multi-word fields/variants.
ruma-events
ruma-events contains serializable types for the events in the Matrix specification that can be shared by client and server code.
Minimum Rust version
ruma-events requires Rust 1.40.0 or later.
Documentation
ruma-events has comprehensive documentation available on docs.rs.
Languages
Rust
100%