Skip to main content

parse_zod_attrs

Function parse_zod_attrs 

Source
pub fn parse_zod_attrs(attrs: &[Attribute]) -> Result<ZodAttrs>
Expand description

Parse all #[zod(...)] attributes from a slice, merging results.

Returns an error for unrecognised keys so users get an actionable message rather than silently ignored constraints.