pub struct PageSetting {
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 items: Vec<Setting>,
pub inline_title: Option<bool>,
pub auth_to_open: Option<bool>,
pub icon: Option<PageIcon>,
pub info: 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:
contentlistingssettings
items: Vec<Setting>The settings contained in this page.
inline_title: Option<bool>Whether to display the title inline.
auth_to_open: Option<bool>Whether to require authentication to open the page.
icon: Option<PageIcon>An icon to be displayed along with the page title.
info: Option<String>An optional string to display under the title in a header view (an icon must also be provided).
Trait Implementations§
Source§impl Clone for PageSetting
impl Clone for PageSetting
Source§fn clone(&self) -> PageSetting
fn clone(&self) -> PageSetting
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 PageSetting
impl Debug for PageSetting
Source§impl Default for PageSetting
impl Default for PageSetting
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 PartialEq for PageSetting
impl PartialEq for PageSetting
impl StructuralPartialEq for PageSetting
Auto Trait Implementations§
impl Freeze for PageSetting
impl RefUnwindSafe for PageSetting
impl Send for PageSetting
impl Sync for PageSetting
impl Unpin for PageSetting
impl UnwindSafe for PageSetting
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