pub struct SearchParams {Show 14 fields
pub q: String,
pub page: Option<usize>,
pub per_page: Option<usize>,
pub min_words: Option<i64>,
pub max_words: Option<i64>,
pub complete: Option<bool>,
pub source: Option<String>,
pub fandom: Option<String>,
pub exclude_fandom: Option<String>,
pub main_char_attr: Option<String>,
pub min_kudos: Option<i64>,
pub sort: Option<String>,
pub include_tags: Option<String>,
pub exclude_tags: Option<String>,
}Expand description
Query parameter builder for advanced search.
Fields§
§q: StringFull-text query string.
page: Option<usize>Page number (1-based).
per_page: Option<usize>Results per page.
min_words: Option<i64>Minimum word count filter.
max_words: Option<i64>Maximum word count filter.
complete: Option<bool>Only return completed works when true.
source: Option<String>Source-site filter (e.g. archiveofourown.org).
fandom: Option<String>Fandom filter (comma-separated fandoms accepted).
exclude_fandom: Option<String>Exclude these fandoms (comma-separated).
main_char_attr: Option<String>Main character/relationship attribute filter.
min_kudos: Option<i64>Minimum kudos filter.
sort: Option<String>Sort key (e.g. kudos, updated, words).
Require these tags (comma-separated).
Exclude these tags (comma-separated).
Implementations§
Trait Implementations§
Source§impl Clone for SearchParams
impl Clone for SearchParams
Source§fn clone(&self) -> SearchParams
fn clone(&self) -> SearchParams
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 SearchParams
impl Debug for SearchParams
Source§impl Default for SearchParams
impl Default for SearchParams
Source§fn default() -> SearchParams
fn default() -> SearchParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnsafeUnpin for SearchParams
impl UnwindSafe for SearchParams
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more