pub struct StepperSetting {
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 minimum_value: f64,
pub maximum_value: f64,
pub step_value: Option<f64>,
pub default: Option<f64>,
}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:
contentlistingssettings
minimum_value: f64The minimum allowed value.
maximum_value: f64The maximum allowed value.
step_value: Option<f64>Optional step increment value.
default: Option<f64>The default value.
Trait Implementations§
Source§impl Clone for StepperSetting
impl Clone for StepperSetting
Source§fn clone(&self) -> StepperSetting
fn clone(&self) -> StepperSetting
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 StepperSetting
impl Debug for StepperSetting
Source§impl Default for StepperSetting
impl Default for StepperSetting
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 PartialEq for StepperSetting
impl PartialEq for StepperSetting
impl StructuralPartialEq for StepperSetting
Auto Trait Implementations§
impl Freeze for StepperSetting
impl RefUnwindSafe for StepperSetting
impl Send for StepperSetting
impl Sync for StepperSetting
impl Unpin for StepperSetting
impl UnwindSafe for StepperSetting
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