Function ruma::canonical_json::to_canonical_value
source · pub fn to_canonical_value<T>(
value: T,
) -> Result<CanonicalJsonValue, CanonicalJsonError>where
T: Serialize,
Expand description
Fallible conversion from any value that impl’s Serialize
to a CanonicalJsonValue
.