pub fn fits<T: DeserializeOwned>(
op: &str,
body: &Value,
) -> Result<(), BodyError>Expand description
Does body deserialise into T?
Generated code calls this with the type its own wrapper takes for the operation, which is how a body assembled on a command line is held to the same schema as a body passed from Rust — before a request is built.