Skip to main content

Module attributes

Module attributes 

Source
Expand description

Attribute parsing for #[serde(...)] and #[zod(...)] annotations.

Both parsers use syn’s parse_nested_meta API so they work correctly with the full attribute syntax including serde(rename(serialize = "...", deserialize = "...")) and can skip unknown keys without panicking.

Structs§

SerdeAttrs
Parsed #[serde(...)] attributes relevant to orpc schema generation.
ZodAttrs
Parsed #[zod(...)] attributes for a single struct field.

Functions§

apply_rename_rule
Apply a #[serde(rename_all = "...")] rule to a variant or field name.
parse_serde_attrs
Parse all #[serde(...)] attributes from a slice, merging results.
parse_zod_attrs
Parse all #[zod(...)] attributes from a slice, merging results.