pub fn to_root<T: Object + Serialize>( value: &T, ) -> Result<Vec<u8>, CanonicalError>
The canonical encoding of value as a root object: its members and its type.
value
type