pub struct KeyPayload<S> {
pub settings: S,
pub coordinates: Option<Coordinates>,
pub state: Option<u8>,
pub user_desired_state: Option<u8>,
}
Expand description
Additional information about the key pressed.
Fields§
§settings: S
The stored settings for the action instance.
coordinates: Option<Coordinates>
The location of the key that was pressed, or None if this action instance is part of a multi action.
state: Option<u8>
The current state of the action instance.
user_desired_state: Option<u8>
The desired state of the action instance (if this instance is part of a multi action).
Trait Implementations§
Source§impl<S: Debug> Debug for KeyPayload<S>
impl<S: Debug> Debug for KeyPayload<S>
Source§impl<'de, S> Deserialize<'de> for KeyPayload<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for KeyPayload<S>where
S: Deserialize<'de>,
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<S> Freeze for KeyPayload<S>where
S: Freeze,
impl<S> RefUnwindSafe for KeyPayload<S>where
S: RefUnwindSafe,
impl<S> Send for KeyPayload<S>where
S: Send,
impl<S> Sync for KeyPayload<S>where
S: Sync,
impl<S> Unpin for KeyPayload<S>where
S: Unpin,
impl<S> UnwindSafe for KeyPayload<S>where
S: UnwindSafe,
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