pub struct CmdReply {
pub ok: bool,
pub error: Option<String>,
pub data: Value,
}Expand description
The answer to one CmdRequest.
Fields§
§ok: boolSuccess flag.
error: Option<String>Why it failed. No secrets.
data: ValueCommand result.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CmdReply
impl<'de> Deserialize<'de> for CmdReply
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 CmdReply
impl RefUnwindSafe for CmdReply
impl Send for CmdReply
impl Sync for CmdReply
impl Unpin for CmdReply
impl UnsafeUnpin for CmdReply
impl UnwindSafe for CmdReply
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