pub struct ActivateCommandRequest {
pub duration: f64,
}Expand description
Request payload for fixed-duration command activation.
JSON schema
{
"description": "Request payload for fixed-duration command activation.",
"type": "object",
"required": [
"duration"
],
"properties": {
"duration": {
"description": "Command active duration in seconds. `0` means immediate press-and-release.\n",
"type": "number",
"format": "double",
"maximum": 10.0,
"minimum": 0.0
}
}
}Fields§
§duration: f64Trait Implementations§
Source§impl Clone for ActivateCommandRequest
impl Clone for ActivateCommandRequest
Source§fn clone(&self) -> ActivateCommandRequest
fn clone(&self) -> ActivateCommandRequest
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 ActivateCommandRequest
impl Debug for ActivateCommandRequest
Source§impl<'de> Deserialize<'de> for ActivateCommandRequest
impl<'de> Deserialize<'de> for ActivateCommandRequest
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 ActivateCommandRequest
impl RefUnwindSafe for ActivateCommandRequest
impl Send for ActivateCommandRequest
impl Sync for ActivateCommandRequest
impl Unpin for ActivateCommandRequest
impl UnsafeUnpin for ActivateCommandRequest
impl UnwindSafe for ActivateCommandRequest
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