Skip to main content

take

Function take 

Source
pub fn take<T: DeserializeOwned>(
    kind: &str,
    m: &mut Map<String, Value>,
    params: &[ParamInfo],
    name: &str,
) -> Result<T>
Expand description

Take the value of the parameter name from the mapping, or its default.

ยงErrors

Error::Config for a missing required parameter, a value of the wrong type, out of its bounds or not among its accepted values.