Struct letterboxd::SearchRequest
source · pub struct SearchRequest {
pub cursor: Option<Cursor>,
pub per_page: Option<usize>,
pub input: String,
pub search_method: Option<SearchMethod>,
pub include: Option<Vec<SearchResultType>>,
pub contribution_type: Option<ContributionType>,
}
Fields§
§cursor: Option<Cursor>
The pagination cursor.
per_page: Option<usize>
The number of items to include per page (default is 20, maximum is 100).
input: String
The word, partial word or phrase to search for.
search_method: Option<SearchMethod>
The type of search to perform. Defaults to FullText, which performs a standard search considering text in all fields. Autocomplete only searches primary fields.
include: Option<Vec<SearchResultType>>
§contribution_type: Option<ContributionType>
The type of contributor to search for. Implies include=ContributorSearchItem.
Implementations§
source§impl SearchRequest
impl SearchRequest
pub fn new(input: String) -> SearchRequest
Trait Implementations§
source§impl Clone for SearchRequest
impl Clone for SearchRequest
source§fn clone(&self) -> SearchRequest
fn clone(&self) -> SearchRequest
Returns a copy 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 SearchRequest
impl Debug for SearchRequest
source§impl Default for SearchRequest
impl Default for SearchRequest
source§fn default() -> SearchRequest
fn default() -> SearchRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchRequest
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnwindSafe for SearchRequest
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