Skip to main content

is_missing_field

Function is_missing_field 

Source
fn is_missing_field(error: &FromHttpRequestError) -> bool
Expand description

Reports whether a body failed to parse on an absent required field.

serde_json does not expose the case structurally, so this reads the message serde’s de::Error::missing_field writes. Only bodies are checked: neither route has a required query parameter, and a matched route has its path.