pub struct MaxResults(/* private fields */);Implementations§
Source§impl MaxResults
 
impl MaxResults
pub fn new(max_results: NonZeroU32) -> Self
Trait Implementations§
Source§impl AppendToUrlQuery for MaxResults
 
impl AppendToUrlQuery for MaxResults
fn append_to_url_query(&self, url: &mut Url)
Source§impl Clone for MaxResults
 
impl Clone for MaxResults
Source§fn clone(&self) -> MaxResults
 
fn clone(&self) -> MaxResults
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 MaxResults
 
impl Debug for MaxResults
Source§impl From<NonZero<u32>> for MaxResults
 
impl From<NonZero<u32>> for MaxResults
Source§fn from(max_results: NonZeroU32) -> Self
 
fn from(max_results: NonZeroU32) -> Self
Converts to this type from the input type.
Source§impl Ord for MaxResults
 
impl Ord for MaxResults
Source§fn cmp(&self, other: &MaxResults) -> Ordering
 
fn cmp(&self, other: &MaxResults) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MaxResults
 
impl PartialEq for MaxResults
Source§impl PartialOrd for MaxResults
 
impl PartialOrd for MaxResults
Source§impl TryFrom<u32> for MaxResults
 
impl TryFrom<u32> for MaxResults
impl Copy for MaxResults
impl Eq for MaxResults
impl StructuralPartialEq for MaxResults
Auto Trait Implementations§
impl Freeze for MaxResults
impl RefUnwindSafe for MaxResults
impl Send for MaxResults
impl Sync for MaxResults
impl Unpin for MaxResults
impl UnwindSafe for MaxResults
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<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.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