Skip to main content

to_canonical_object

Function to_canonical_object 

Source
pub fn to_canonical_object<T: Serialize>(
    value: T,
) -> Result<CanonicalJsonObject, CanonicalJsonError>
Expand description

Fallible conversion from any value that implements Serialize to a CanonicalJsonObject.

value must serialize to an serde_json::Value::Object.