pub trait Serializable {
// Required methods
fn to_json(&self) -> String;
fn to_msg(&self) -> Result<Vec<u8>, ValueWriteError>;
}Expand description
Serialization trait which all types you intend to put in a Tree need to implement.
Required Methods§
Implementations on Foreign Types§
Source§impl Serializable for f64
impl Serializable for f64
Source§impl Serializable for u64
impl Serializable for u64
Source§impl Serializable for String
Wraps the String in quotes(“”).
impl Serializable for String
Wraps the String in quotes(“”).