pub struct CommandResultPayload {
pub command_id: String,
pub success: bool,
pub result: Option<Value>,
pub error: Option<String>,
}Expand description
Payload for command execution results.
Fields§
§command_id: StringID of the command being responded to.
success: boolWhether the command succeeded.
result: Option<Value>Result data if successful.
error: Option<String>Error message if failed.
Trait Implementations§
Source§impl Clone for CommandResultPayload
impl Clone for CommandResultPayload
Source§fn clone(&self) -> CommandResultPayload
fn clone(&self) -> CommandResultPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandResultPayload
impl Debug for CommandResultPayload
Source§impl<'de> Deserialize<'de> for CommandResultPayload
impl<'de> Deserialize<'de> for CommandResultPayload
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 CommandResultPayload
impl RefUnwindSafe for CommandResultPayload
impl Send for CommandResultPayload
impl Sync for CommandResultPayload
impl Unpin for CommandResultPayload
impl UnsafeUnpin for CommandResultPayload
impl UnwindSafe for CommandResultPayload
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