pub struct ActionShortcut {
pub key: String,
pub ctrl: bool,
pub shift: bool,
pub alt: bool,
pub meta: bool,
}Expand description
Shortcut metadata adapters can map to toolkit-specific accelerators.
Fields§
§key: String§ctrl: bool§shift: bool§alt: bool§meta: boolImplementations§
Trait Implementations§
Source§impl Clone for ActionShortcut
impl Clone for ActionShortcut
Source§fn clone(&self) -> ActionShortcut
fn clone(&self) -> ActionShortcut
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActionShortcut
impl Debug for ActionShortcut
Source§impl<'de> Deserialize<'de> for ActionShortcut
impl<'de> Deserialize<'de> for ActionShortcut
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 Eq for ActionShortcut
Source§impl PartialEq for ActionShortcut
impl PartialEq for ActionShortcut
Source§fn eq(&self, other: &ActionShortcut) -> bool
fn eq(&self, other: &ActionShortcut) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionShortcut
impl Serialize for ActionShortcut
impl StructuralPartialEq for ActionShortcut
Auto Trait Implementations§
impl Freeze for ActionShortcut
impl RefUnwindSafe for ActionShortcut
impl Send for ActionShortcut
impl Sync for ActionShortcut
impl Unpin for ActionShortcut
impl UnsafeUnpin for ActionShortcut
impl UnwindSafe for ActionShortcut
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.