pub struct ActionResponse {
pub serial_numbers: Vec<String>,
pub message: String,
pub payload: Vec<u8>,
pub status: Status,
}
Expand description
The various ways a device may respond to an action request. Might be returned multiple times for some statuses (ongoing, deferred).
Fields§
§serial_numbers: Vec<String>
A list of serial numbers representing the devices that share the same response. This field allows to send a collective response to Fundamentum for multiple devices simultaneously. Defaults to the current device if empty.
message: String
Response message to display in Fundamentum’s UI.
payload: Vec<u8>
Optional action user response payload. Left empty when unspecified.
status: Status
Status of the action.
Trait Implementations§
Source§impl Clone for ActionResponse
impl Clone for ActionResponse
Source§fn clone(&self) -> ActionResponse
fn clone(&self) -> ActionResponse
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 ActionResponse
impl Debug for ActionResponse
Source§impl From<ActionResponse> for ActionResponse
impl From<ActionResponse> for ActionResponse
Source§fn from(action_response: ActionResponse) -> Self
fn from(action_response: ActionResponse) -> Self
Converts to this type from the input type.
Source§impl Hash for ActionResponse
impl Hash for ActionResponse
Source§impl PartialEq for ActionResponse
impl PartialEq for ActionResponse
impl Eq for ActionResponse
impl StructuralPartialEq for ActionResponse
Auto Trait Implementations§
impl Freeze for ActionResponse
impl RefUnwindSafe for ActionResponse
impl Send for ActionResponse
impl Sync for ActionResponse
impl Unpin for ActionResponse
impl UnwindSafe for ActionResponse
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