Struct streamdeck_rs::KeyPayload
source · 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