Skip to main content

input

Attribute Macro input 

Source
#[input]
Expand description

#[input] — shorthand for input DTOs. Appends #[derive(::serde::Deserialize, ::validator::Validate)] and #[serde(deny_unknown_fields)] so an unknown field on the wire (e.g. is_admin: true) is rejected at parse time instead of silently dropped.