pub struct AppSettings {
pub schema_version: u32,
pub appearance: AppearanceSettings,
pub download: DownloadSettings,
pub advanced: AdvancedSettings,
pub telegram: TelegramSettings,
pub proxy: ProxySettings,
pub onboarding_completed: bool,
pub start_with_windows: bool,
pub portable_mode: bool,
pub legal_acknowledged: bool,
pub last_download_options: LastDownloadOptions,
}Fields§
§schema_version: u32§appearance: AppearanceSettings§download: DownloadSettings§advanced: AdvancedSettings§telegram: TelegramSettings§proxy: ProxySettings§onboarding_completed: bool§start_with_windows: bool§portable_mode: bool§legal_acknowledged: bool§last_download_options: LastDownloadOptionsImplementations§
Source§impl AppSettings
impl AppSettings
pub fn load_from_disk() -> Self
pub fn save_to_disk(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for AppSettings
impl Clone for AppSettings
Source§fn clone(&self) -> AppSettings
fn clone(&self) -> AppSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AppSettings
impl Debug for AppSettings
Source§impl Default for AppSettings
impl Default for AppSettings
Source§impl<'de> Deserialize<'de> for AppSettings
impl<'de> Deserialize<'de> for AppSettings
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 AppSettings
impl RefUnwindSafe for AppSettings
impl Send for AppSettings
impl Sync for AppSettings
impl Unpin for AppSettings
impl UnsafeUnpin for AppSettings
impl UnwindSafe for AppSettings
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