pub struct DefaultAttribute {
pub expression: Expression,
pub if: Option<Expression>,
}Expand description
A config option can have any number of default values. If multiple default values are visible, only the first defined one is active. Default values are not limited to the menu entry where they are defined. This means the default can be defined somewhere else or be overridden by an earlier definition. The default value is only assigned to the config symbol if no other value was set by the user.
see “default value” for more information.
Fields§
§expression: Expression§if: Option<Expression>Trait Implementations§
Source§impl Clone for DefaultAttribute
impl Clone for DefaultAttribute
Source§fn clone(&self) -> DefaultAttribute
fn clone(&self) -> DefaultAttribute
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 DefaultAttribute
impl Debug for DefaultAttribute
Source§impl<'de> Deserialize<'de> for DefaultAttribute
impl<'de> Deserialize<'de> for DefaultAttribute
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 Display for DefaultAttribute
Available on crate feature display only.
impl Display for DefaultAttribute
Available on crate feature
display only.Source§impl Hash for DefaultAttribute
impl Hash for DefaultAttribute
Source§impl PartialEq for DefaultAttribute
impl PartialEq for DefaultAttribute
Source§impl Serialize for DefaultAttribute
impl Serialize for DefaultAttribute
impl StructuralPartialEq for DefaultAttribute
Auto Trait Implementations§
impl Freeze for DefaultAttribute
impl RefUnwindSafe for DefaultAttribute
impl Send for DefaultAttribute
impl Sync for DefaultAttribute
impl Unpin for DefaultAttribute
impl UnwindSafe for DefaultAttribute
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