pub struct KeyPress {
pub keys: Vec<String>,
}
Expand description
A collection of keypresses the model would like to perform.
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.
Implementations§
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
impl StructuralPartialEq for KeyPress
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