pub struct PayloadCommand {
pub ids: Vec<String>,
pub status: PayloadCommandStatus,
pub states: Map<String, Value>,
pub error_code: Option<String>,
}Expand description
Device execution result.
Fields§
§ids: Vec<String>List of device IDs corresponding to this status.
status: PayloadCommandStatusResult of the execute operation.
states: Map<String, Value>Aligned with per-trait states described in each trait schema reference. These are the states after execution, if available.
error_code: Option<String>Expanding ERROR state if needed from the preset error codes, which will map to the errors presented to users.
Trait Implementations§
Source§impl Clone for PayloadCommand
impl Clone for PayloadCommand
Source§fn clone(&self) -> PayloadCommand
fn clone(&self) -> PayloadCommand
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 PayloadCommand
impl Debug for PayloadCommand
Source§impl<'de> Deserialize<'de> for PayloadCommand
impl<'de> Deserialize<'de> for PayloadCommand
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
Source§impl PartialEq for PayloadCommand
impl PartialEq for PayloadCommand
Source§impl Serialize for PayloadCommand
impl Serialize for PayloadCommand
impl Eq for PayloadCommand
impl StructuralPartialEq for PayloadCommand
Auto Trait Implementations§
impl Freeze for PayloadCommand
impl RefUnwindSafe for PayloadCommand
impl Send for PayloadCommand
impl Sync for PayloadCommand
impl Unpin for PayloadCommand
impl UnwindSafe for PayloadCommand
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