Serializable

Trait Serializable 

Source
pub trait Serializable {
    // Required methods
    fn to_json(&self) -> JsonValue;
    fn from_json(json: &JsonValue) -> Option<Self>
       where Self: Sized;
}
Expand description

Trait for serializable types

Required Methods§

Source

fn to_json(&self) -> JsonValue

Source

fn from_json(json: &JsonValue) -> Option<Self>
where Self: Sized,

Implementors§