pub struct Settings {
pub root_dir_path: String,
pub target_media_type: TargetMediaType,
pub sub_dir_depth_limit: u8,
pub thumbnail_size: u16,
pub cache_lookup_strategy: CacheLookupStrategy,
pub similarity_threshold: f32,
pub locale: Locale,
pub theme: ThemePreset,
}Fields§
§root_dir_path: String§target_media_type: TargetMediaType§sub_dir_depth_limit: u8§thumbnail_size: u16§cache_lookup_strategy: CacheLookupStrategy§similarity_threshold: f32Cosine-similarity threshold for the focus view and similarity pairs
finder. Defaults to MIN_IMAGE_SIMILARITY (0.86).
serde(default) ensures existing settings files load cleanly.
locale: Locale§theme: ThemePresetTrait 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 UnsafeUnpin 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