pub struct PickerSetting {
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 values: Vec<Cow<'static, str>>,
pub titles: Option<Vec<Cow<'static, str>>>,
pub default: Option<String>,
}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 to send to the source 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 items that should be refreshed when this setting changes.
The valid options are:
contentlistingssettingsfilters
values: Vec<Cow<'static, str>>The values of the options.
titles: Option<Vec<Cow<'static, str>>>Optional display titles for the options. If not provided, the values will be used as titles.
default: Option<String>The default selected value. If not provided, the first value will be selected.
Trait Implementations§
Source§impl Clone for PickerSetting
impl Clone for PickerSetting
Source§fn clone(&self) -> PickerSetting
fn clone(&self) -> PickerSetting
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 PickerSetting
impl Debug for PickerSetting
Source§impl Default for PickerSetting
impl Default for PickerSetting
Source§impl From<PickerSetting> for Setting
impl From<PickerSetting> for Setting
Source§fn from(source: PickerSetting) -> Self
fn from(source: PickerSetting) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PickerSetting
impl PartialEq for PickerSetting
impl StructuralPartialEq for PickerSetting
Auto Trait Implementations§
impl Freeze for PickerSetting
impl RefUnwindSafe for PickerSetting
impl Send for PickerSetting
impl Sync for PickerSetting
impl Unpin for PickerSetting
impl UnsafeUnpin for PickerSetting
impl UnwindSafe for PickerSetting
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