Skip to main content

take_field

Function take_field 

Source
pub fn take_field<T: TryFrom<RuntimeValue, Error = ValueProjectionError>>(
    obj: &mut BTreeMap<String, RuntimeValue>,
    key: &str,
    what: &str,
) -> Result<T, ValueProjectionError>
Expand description

Remove and project a typed field from an object map.