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§
- Serde
Attrs - 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.