pub trait Message: Serialize {
    fn reason(&self) -> &str;

    fn to_json_string(&self) -> String { ... }
}

Required Methods§

Provided Methods§

Implementors§