pub struct UserSettings {
pub thumb_size: ThumbnailResolution,
pub per_page: u64,
pub purity: Purities,
pub categories: Categories,
pub resolutions: Vec<Resolution>,
pub aspect_ratios: Vec<AspectRatio>,
pub toplist_range: ToplistRange,
pub tag_blacklist: Vec<String>,
pub user_blacklist: Vec<String>,
pub ai_art_filter: bool,
}Expand description
Represents user settings, mostly the default search settings
Fields§
§thumb_size: ThumbnailResolutionThe default wallpaper thumbnail resolution
per_page: u64How many wallpapers per page by default
purity: PuritiesPurities used by default when searching.
See Purities
categories: CategoriesCategories used by default when searching.
See Categories
resolutions: Vec<Resolution>A list of resolutions that will be included by default when searching.
See Resolution
aspect_ratios: Vec<AspectRatio>A list of aspect ratios that will be included by default when searching.
See AspectRatio
toplist_range: ToplistRangeThe toplist range used by default when searching.
See ToplistRange
tag_blacklist: Vec<String>A list of tags that are excluded from all searches and listings
user_blacklist: Vec<String>A list of usernames that are excluded from all searches and listings
ai_art_filter: boolIf AI art is filtered out.
Trait Implementations§
Source§impl Clone for UserSettings
impl Clone for UserSettings
Source§fn clone(&self) -> UserSettings
fn clone(&self) -> UserSettings
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 UserSettings
impl Debug for UserSettings
Source§impl<'de> Deserialize<'de> for UserSettings
impl<'de> Deserialize<'de> for UserSettings
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 UserSettings
impl RefUnwindSafe for UserSettings
impl Send for UserSettings
impl Sync for UserSettings
impl Unpin for UserSettings
impl UnwindSafe for UserSettings
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