pub struct Setting {
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>>>,
pub value: SettingValue,
}Expand description
A setting that is shown in the source settings page.
This struct shouldn’t be constructed directly. Instead, use the individual settings structs and call into.
Fields§
§key: Cow<'static, str>§title: Cow<'static, str>§notification: Option<Cow<'static, str>>§requires: Option<Cow<'static, str>>§requires_false: Option<Cow<'static, str>>§refreshes: Option<Vec<Cow<'static, str>>>§value: SettingValueTrait Implementations§
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 From<EditableListSetting> for Setting
impl From<EditableListSetting> for Setting
Source§fn from(source: EditableListSetting) -> Self
fn from(source: EditableListSetting) -> Self
Converts to this type from the input type.
Source§impl From<GroupSetting> for Setting
impl From<GroupSetting> for Setting
Source§fn from(source: GroupSetting) -> Self
fn from(source: GroupSetting) -> Self
Converts to this type from the input type.
Source§impl From<LinkSetting> for Setting
impl From<LinkSetting> for Setting
Source§fn from(source: LinkSetting) -> Self
fn from(source: LinkSetting) -> Self
Converts to this type from the input type.
Source§impl From<LoginSetting> for Setting
impl From<LoginSetting> for Setting
Source§fn from(source: LoginSetting) -> Self
fn from(source: LoginSetting) -> Self
Converts to this type from the input type.
Source§impl From<MultiSelectSetting> for Setting
impl From<MultiSelectSetting> for Setting
Source§fn from(source: MultiSelectSetting) -> Self
fn from(source: MultiSelectSetting) -> Self
Converts to this type from the input type.
Source§impl From<PageSetting> for Setting
impl From<PageSetting> for Setting
Source§fn from(source: PageSetting) -> Self
fn from(source: PageSetting) -> Self
Converts to this type from the input type.
Source§impl From<SegmentSetting> for Setting
impl From<SegmentSetting> for Setting
Source§fn from(source: SegmentSetting) -> Self
fn from(source: SegmentSetting) -> Self
Converts to this type from the input type.
Source§impl From<SelectSetting> for Setting
impl From<SelectSetting> for Setting
Source§fn from(source: SelectSetting) -> Self
fn from(source: SelectSetting) -> Self
Converts to this type from the input type.
Source§impl From<StepperSetting> for Setting
impl From<StepperSetting> for Setting
Source§fn from(source: StepperSetting) -> Self
fn from(source: StepperSetting) -> Self
Converts to this type from the input type.
Source§impl From<TextSetting> for Setting
impl From<TextSetting> for Setting
Source§fn from(source: TextSetting) -> Self
fn from(source: TextSetting) -> Self
Converts to this type from the input type.
Source§impl From<ToggleSetting> for Setting
impl From<ToggleSetting> for Setting
Source§fn from(source: ToggleSetting) -> Self
fn from(source: ToggleSetting) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Setting
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnwindSafe for Setting
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