pub struct ButtonMacros {
pub macro_button: Option<u8>,
pub macro_long_press: Option<u8>,
pub macro_double_press: Option<u8>,
}
Fields§
preset to apply when button is pressed once, or default behaviour if 0.
macro_long_press: Option<u8>
preset to apply when button is pressed for a long time, or default behaviour if 0.
macro_double_press: Option<u8>
preset to apply when button is pressed twice, or default behaviour if 0.
Trait Implementations§
Source§impl Clone for ButtonMacros
impl Clone for ButtonMacros
Source§fn clone(&self) -> ButtonMacros
fn clone(&self) -> ButtonMacros
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 ButtonMacros
impl Debug for ButtonMacros
Source§impl Default for ButtonMacros
impl Default for ButtonMacros
Source§fn default() -> ButtonMacros
fn default() -> ButtonMacros
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ButtonMacros
impl<'de> Deserialize<'de> for ButtonMacros
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 ButtonMacros
impl PartialEq for ButtonMacros
Source§impl Serialize for ButtonMacros
impl Serialize for ButtonMacros
impl StructuralPartialEq for ButtonMacros
Auto Trait Implementations§
impl Freeze for ButtonMacros
impl RefUnwindSafe for ButtonMacros
impl Send for ButtonMacros
impl Sync for ButtonMacros
impl Unpin for ButtonMacros
impl UnwindSafe for ButtonMacros
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