pub struct ActionRequest {
pub id: u64,
pub target_devices: Vec<String>,
pub action: Action,
}
Expand description
A request from the cloud for a specific device to perform an action/command.
Fields§
§id: u64
Unique ID of the action.
target_devices: Vec<String>
A list of serial numbers for devices targeted by this request. Specifies the devices on which the action should be applied, allowing for batch operations across multiple devices. Defaults to the current device if empty.
action: Action
Types of the action
Trait Implementations§
Source§impl Clone for ActionRequest
impl Clone for ActionRequest
Source§fn clone(&self) -> ActionRequest
fn clone(&self) -> ActionRequest
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 ActionRequest
impl Debug for ActionRequest
Source§impl Hash for ActionRequest
impl Hash for ActionRequest
Source§impl PartialEq for ActionRequest
impl PartialEq for ActionRequest
Source§impl TryFrom<ActionRequest> for ActionRequest
impl TryFrom<ActionRequest> for ActionRequest
Source§impl TryFrom<Bytes> for ActionRequest
impl TryFrom<Bytes> for ActionRequest
impl Eq for ActionRequest
impl StructuralPartialEq for ActionRequest
Auto Trait Implementations§
impl Freeze for ActionRequest
impl RefUnwindSafe for ActionRequest
impl Send for ActionRequest
impl Sync for ActionRequest
impl Unpin for ActionRequest
impl UnwindSafe for ActionRequest
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