pub struct AppSettings {
pub nexus_api_key: String,
pub game_paths: SmallVec<[GamePath; 4]>,
pub download_dir: Option<PathBuf>,
pub theme: String,
pub selected_game: Option<String>,
pub update_check: UpdateCheckSettings,
}Expand description
Persistent application settings shared between CLI and UI.
Stored as TOML at <config_dir>/modde/settings.toml.
Fields§
§nexus_api_key: String§game_paths: SmallVec<[GamePath; 4]>Configured game install paths — typically 1–4 games.
SmallVec<[_; 4]> keeps ≤4 entries inline (no heap allocation).
download_dir: Option<PathBuf>§theme: String§selected_game: Option<String>§update_check: UpdateCheckSettingsImplementations§
Source§impl AppSettings
impl AppSettings
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§fn default() -> AppSettings
fn default() -> AppSettings
Returns the “default value” for a type. Read more
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