pub struct Descriptor {
    pub name: &'static str,
    pub description: &'static str,
    pub offset: u32,
    pub detail: Detail,
}
Expand description

A setting descriptor holds the information needed to generically set and print a setting.

Each settings group will be represented as a constant DESCRIPTORS array.

Fields

name: &'static str

Lower snake-case name of setting as defined in meta.

description: &'static str

The description of the setting.

offset: u32

Offset of byte containing this setting.

detail: Detail

Additional details, depending on the kind of setting.

Trait Implementations

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.