pub struct KeyInstructions {
pub on_press: Execution,
pub while_pressed: Execution,
pub on_release: Execution,
}
Expand description
Instructions for a automation key.
Fields§
§on_press: Execution
The automation instructions to execute when the key is pressed.
while_pressed: Execution
The automation instructions to execute while the key is pressed.
on_release: Execution
The automation instructions to execute when the key is released.
Trait Implementations§
Source§impl Clone for KeyInstructions
impl Clone for KeyInstructions
Source§fn clone(&self) -> KeyInstructions
fn clone(&self) -> KeyInstructions
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 KeyInstructions
impl Debug for KeyInstructions
Source§impl<'de> Deserialize<'de> for KeyInstructions
impl<'de> Deserialize<'de> for KeyInstructions
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
Source§impl PartialEq for KeyInstructions
impl PartialEq for KeyInstructions
impl Copy for KeyInstructions
impl StructuralPartialEq for KeyInstructions
Auto Trait Implementations§
impl Freeze for KeyInstructions
impl RefUnwindSafe for KeyInstructions
impl Send for KeyInstructions
impl Sync for KeyInstructions
impl Unpin for KeyInstructions
impl UnwindSafe for KeyInstructions
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