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

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

Required Methods§

source

fn reason(&self) -> &str

Provided Methods§

Implementors§