pub enum RequestCommand {
Info(Info),
Print(Print),
}Variants§
Implementations§
Source§impl RequestCommand
impl RequestCommand
Sourcepub fn to_payload(&self) -> Result<String, Error>
pub fn to_payload(&self) -> Result<String, Error>
Serialize self into a pretty-printed JSON String.
pub fn get_sequence_id(&self) -> Option<String>
Trait Implementations§
Source§impl Debug for RequestCommand
impl Debug for RequestCommand
Source§impl<'de> Deserialize<'de> for RequestCommand
impl<'de> Deserialize<'de> for RequestCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestCommand
impl RefUnwindSafe for RequestCommand
impl Send for RequestCommand
impl Sync for RequestCommand
impl Unpin for RequestCommand
impl UnwindSafe for RequestCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more