Struct hematite_server::types::ChatJson [] [src]

pub struct ChatJson {
    pub msg: Message,
    pub extra: Vec<ChatJson>,
    pub color: Option<Color>,
    pub formats: BTreeSet<Format>,
    pub click_event: Option<ClickEvent>,
    pub hover_event: Option<HoverEvent>,
    pub insertion: Option<String>,
}

Fields

msg
extra
color
formats
click_event
hover_event
insertion

Methods

impl ChatJson

fn from_reader(src: &mut Read) -> Result<ChatJson, ChatJsonError>

fn from_json(json: Json) -> Result<ChatJson, ChatJsonError>

Trait Implementations

impl From<String> for ChatJson

fn from(msg: String) -> ChatJson

impl<'a> From<&'a str> for ChatJson

fn from(msg: &str) -> ChatJson

impl ToJson for ChatJson

fn to_json(&self) -> Json

impl Encodable for ChatJson

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

Derived Implementations

impl PartialEq for ChatJson

fn eq(&self, __arg_0: &ChatJson) -> bool

fn ne(&self, __arg_0: &ChatJson) -> bool

impl Debug for ChatJson

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for ChatJson

fn clone(&self) -> ChatJson

fn clone_from(&mut self, source: &Self)