Struct rs::data::parsing::ButtonMeta
source · struct ButtonMeta {
action: Option<Action>,
keysym: Option<String>,
text: Option<String>,
modifier: Option<Modifier>,
label: Option<String>,
icon: Option<String>,
outline: Option<String>,
}
Expand description
All info about a single button Buttons can have multiple instances though.
Fields§
§action: Option<Action>
Special action to perform on activation. Conflicts with keysym, text, modifier.
keysym: Option<String>
The name of the XKB keysym to emit on activation. Conflicts with action, text, modifier.
text: Option<String>
The text to submit on activation. Will be derived from ID if not present Conflicts with action, keysym, modifier.
modifier: Option<Modifier>
The modifier to apply while the key is locked Conflicts with action, keysym, text
label: Option<String>
If not present, will be derived from text or the button ID
icon: Option<String>
Conflicts with label
outline: Option<String>
The name of the outline. If not present, will be “default”
Trait Implementations§
source§impl Debug for ButtonMeta
impl Debug for ButtonMeta
source§impl Default for ButtonMeta
impl Default for ButtonMeta
source§fn default() -> ButtonMeta
fn default() -> ButtonMeta
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ButtonMeta
impl<'de> Deserialize<'de> for ButtonMeta
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 ButtonMeta
impl PartialEq for ButtonMeta
impl StructuralPartialEq for ButtonMeta
Auto Trait Implementations§
impl Freeze for ButtonMeta
impl RefUnwindSafe for ButtonMeta
impl Send for ButtonMeta
impl Sync for ButtonMeta
impl Unpin for ButtonMeta
impl UnwindSafe for ButtonMeta
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
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.