pub enum SearchQueryItem {
Fuzz(String),
Exclude(String),
Exact(String),
FromUser(String),
TagById(u64),
FileType(FileType),
LikeWallpaper(String),
}Expand description
A single search query item
Variants§
Fuzz(String)
Fuzzily search for a tag/keyword
On the web UI, this corresponds to tag
Exclude(String)
Exclude a tag/keyword
On the web UI, this corresponds to -tag
Exact(String)
Exact tag match, without the fuzzy search
On the web UI, this corresponds to +tag
FromUser(String)
Exact uploader match
On the web UI, this corresponds to @username
TagById(u64)
Exact tag id search (cannot be combined)
On the web UI, this corresponds to id:123
FileType(FileType)
The wallpaper file type
On the web UI, this corresponds to type:{jpg/png}
LikeWallpaper(String)
Find wallpapers with similar tags
On the web UI, this corresponds to like:{wallpaper_id}
Trait Implementations§
Source§impl Clone for SearchQueryItem
impl Clone for SearchQueryItem
Source§fn clone(&self) -> SearchQueryItem
fn clone(&self) -> SearchQueryItem
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 SearchQueryItem
impl Debug for SearchQueryItem
Source§impl Display for SearchQueryItem
impl Display for SearchQueryItem
Auto Trait Implementations§
impl Freeze for SearchQueryItem
impl RefUnwindSafe for SearchQueryItem
impl Send for SearchQueryItem
impl Sync for SearchQueryItem
impl Unpin for SearchQueryItem
impl UnwindSafe for SearchQueryItem
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.