pub struct ButtonSetting {
pub key: Cow<'static, str>,
pub title: Cow<'static, str>,
pub notification: Option<Cow<'static, str>>,
pub requires: Option<Cow<'static, str>>,
pub requires_false: Option<Cow<'static, str>>,
pub refreshes: Option<Vec<Cow<'static, str>>>,
}Expand description
Fields§
§key: Cow<'static, str>The unique key that identifies this setting.
title: Cow<'static, str>The display title for this setting.
notification: Option<Cow<'static, str>>Optional notification text to display when this setting is changed.
requires: Option<Cow<'static, str>>Optional key of another setting that must be enabled for this setting to be enabled.
requires_false: Option<Cow<'static, str>>Optional key of another setting that must be disabled for this setting to be enabled.
refreshes: Option<Vec<Cow<'static, str>>>Optional list of setting keys that should be refreshed when this setting changes.
Trait Implementations§
Source§impl Clone for ButtonSetting
impl Clone for ButtonSetting
Source§fn clone(&self) -> ButtonSetting
fn clone(&self) -> ButtonSetting
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 ButtonSetting
impl Debug for ButtonSetting
Source§impl Default for ButtonSetting
impl Default for ButtonSetting
Source§impl From<ButtonSetting> for Setting
impl From<ButtonSetting> for Setting
Source§fn from(button: ButtonSetting) -> Self
fn from(button: ButtonSetting) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ButtonSetting
impl PartialEq for ButtonSetting
impl StructuralPartialEq for ButtonSetting
Auto Trait Implementations§
impl Freeze for ButtonSetting
impl RefUnwindSafe for ButtonSetting
impl Send for ButtonSetting
impl Sync for ButtonSetting
impl Unpin for ButtonSetting
impl UnwindSafe for ButtonSetting
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