pub struct KeyPress {
pub keys: Vec<String>,
pub _type: String,
}
Fields§
§keys: Vec<String>
The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
_type: String
Specifies the event type. For a keypress action, this property is always set to keypress
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyPress
impl<'de> Deserialize<'de> for KeyPress
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 KeyPress
impl RefUnwindSafe for KeyPress
impl Send for KeyPress
impl Sync for KeyPress
impl Unpin for KeyPress
impl UnwindSafe for KeyPress
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