pub struct DeviceCommandUpdate { /* private fields */ }
Expand description
DeviceCommandUpdate
Implementations§
Source§impl DeviceCommandUpdate
impl DeviceCommandUpdate
Sourcepub fn new<S: Into<String>>(status: CommandStatus, message: S) -> Self
pub fn new<S: Into<String>>(status: CommandStatus, message: S) -> Self
Create a new DeviceCommandUpdate
§Params
status
: The command’s statusmessage
: The command’s status description message
Sourcepub const fn status(&self) -> &CommandStatus
pub const fn status(&self) -> &CommandStatus
Get the status of the command update.
Trait Implementations§
Source§impl Clone for DeviceCommandUpdate
impl Clone for DeviceCommandUpdate
Source§fn clone(&self) -> DeviceCommandUpdate
fn clone(&self) -> DeviceCommandUpdate
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 DeviceCommandUpdate
impl Debug for DeviceCommandUpdate
Source§impl<'de> Deserialize<'de> for DeviceCommandUpdate
impl<'de> Deserialize<'de> for DeviceCommandUpdate
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 Hash for DeviceCommandUpdate
impl Hash for DeviceCommandUpdate
Source§impl PartialEq for DeviceCommandUpdate
impl PartialEq for DeviceCommandUpdate
Source§impl Serialize for DeviceCommandUpdate
impl Serialize for DeviceCommandUpdate
impl Eq for DeviceCommandUpdate
impl StructuralPartialEq for DeviceCommandUpdate
Auto Trait Implementations§
impl Freeze for DeviceCommandUpdate
impl RefUnwindSafe for DeviceCommandUpdate
impl Send for DeviceCommandUpdate
impl Sync for DeviceCommandUpdate
impl Unpin for DeviceCommandUpdate
impl UnwindSafe for DeviceCommandUpdate
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