Struct sunk::search::SearchPage
source · Expand description
A holding struct for a search configuration.
See the module-level documentation for more information.
Fields
count: usize
The number of results to return.
offset: usize
The page offset.
Implementations
sourceimpl SearchPage
impl SearchPage
sourcepub fn new() -> SearchPage
pub fn new() -> SearchPage
Creates a new search page configuration.
sourcepub fn at_page(offset: usize) -> SearchPage
pub fn at_page(offset: usize) -> SearchPage
Creates the configuration at the provided page.
sourcepub fn with_size(self, count: usize) -> SearchPage
pub fn with_size(self, count: usize) -> SearchPage
Sets the configuration to the given size.
Trait Implementations
sourceimpl Clone for SearchPage
impl Clone for SearchPage
sourcefn clone(&self) -> SearchPage
fn clone(&self) -> SearchPage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SearchPage
impl Debug for SearchPage
sourceimpl Default for SearchPage
impl Default for SearchPage
sourcefn default() -> SearchPage
fn default() -> SearchPage
Returns the “default value” for a type. Read more
sourceimpl Display for SearchPage
impl Display for SearchPage
impl Copy for SearchPage
Auto Trait Implementations
impl RefUnwindSafe for SearchPage
impl Send for SearchPage
impl Sync for SearchPage
impl Unpin for SearchPage
impl UnwindSafe for SearchPage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more