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

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ButtonMeta

source§

fn default() -> ButtonMeta

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ButtonMeta

source§

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

source§

fn eq(&self, other: &ButtonMeta) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ButtonMeta

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,