pub struct Settings {Show 28 fields
pub selected_library: usize,
pub keyboard_layout: String,
pub frontlight: bool,
pub wifi: bool,
pub inverted: bool,
pub sleep_cover: bool,
pub auto_share: bool,
pub rotation_lock: Option<RotationLock>,
pub button_scheme: ButtonScheme,
pub auto_suspend: f32,
pub auto_power_off: f32,
pub time_format: String,
pub date_format: String,
pub external_urls_queue: Option<PathBuf>,
pub libraries: Vec<LibrarySettings>,
pub intermissions: Intermissions,
pub frontlight_presets: Vec<LightPreset>,
pub home: HomeSettings,
pub reader: ReaderSettings,
pub import: ImportSettings,
pub dictionary: DictionarySettings,
pub sketch: SketchSettings,
pub calculator: CalculatorSettings,
pub battery: BatterySettings,
pub frontlight_levels: LightLevels,
pub ota: OtaSettings,
pub logging: LoggingSettings,
pub settings_retention: usize,
}Fields§
§selected_library: usize§keyboard_layout: String§frontlight: bool§wifi: bool§inverted: bool§sleep_cover: bool§rotation_lock: Option<RotationLock>§auto_suspend: f32§auto_power_off: f32§time_format: String§date_format: String§external_urls_queue: Option<PathBuf>§libraries: Vec<LibrarySettings>§intermissions: Intermissions§frontlight_presets: Vec<LightPreset>§home: HomeSettings§reader: ReaderSettings§import: ImportSettings§dictionary: DictionarySettings§sketch: SketchSettings§calculator: CalculatorSettings§battery: BatterySettings§frontlight_levels: LightLevels§ota: OtaSettings§logging: LoggingSettings§settings_retention: usizeTrait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.