Skip to main content

object

Function object 

Source
pub fn object<'a>(
    properties: impl IntoIterator<Item = (&'a str, Value)>,
    required: impl IntoIterator<Item = &'a str>,
) -> Value
Expand description

Object with named properties; required lists the mandatory ones