pub trait ValueSerialize {
// Required methods
fn to_typed(&self) -> Result<TypedValue, SerializeError>;
fn to_bytes(&self) -> Result<Vec<u8>, SerializeError>;
}Expand description
Extension trait for Value to add serialization methods
Required Methods§
Sourcefn to_typed(&self) -> Result<TypedValue, SerializeError>
fn to_typed(&self) -> Result<TypedValue, SerializeError>
Convert to serializable TypedValue