Skip to main content

put_one_with

Function put_one_with 

Source
pub fn put_one_with<T>(
    object: &mut Map<String, Value>,
    keys: &[&str],
    value: Option<&T>,
    write: fn(&T) -> Value,
)
Expand description

put_one, writing the value with write.