Trait miraie::api::ApiRequest [−][src]
pub trait ApiRequest: Send { fn command(&self) -> &'static str; fn sub_command(&self) -> Option<&'static str>; fn encode(&self, sync_id: i64) -> String; }
Expand description
对应将请求序列化成 ws packet 的行为
Required methods
fn sub_command(&self) -> Option<&'static str>