Skip to main content

Crate serde_attr

Crate serde_attr 

Source
Expand description

Parse #[serde(...)] attributes for derive macros.

Used by derive macros (ts-rs, flowjs-rs, etc.) that need to read serde attributes to produce type definitions matching serde’s serialization behavior.

Handles the “always consume the value” pattern to avoid parse buffer issues when serde attributes coexist with other derive attributes.

Structs§

SerdeContainer
Serde attributes parsed from a container (struct or enum).
SerdeField
Serde attributes parsed from a field.
SerdeVariant
Serde attributes parsed from an enum variant.

Enums§

Tagged
Serde tagging model for enums.