Struct lotr_api::request::pagination::Pagination
source · pub struct Pagination { /* private fields */ }
Expand description
This struct contains the date for the pagination of the API.
§Example
use lotr_api::{request::{GetUrl, pagination::Pagination}};
let pagination = Pagination::new(10, 2, 1);
assert_eq!(pagination.get_url(), "limit=10&offset=2&page=1");
Implementations§
Trait Implementations§
source§impl Clone for Pagination
impl Clone for Pagination
source§fn clone(&self) -> Pagination
fn clone(&self) -> Pagination
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 Pagination
impl Debug for Pagination
source§impl PartialEq for Pagination
impl PartialEq for Pagination
source§fn eq(&self, other: &Pagination) -> bool
fn eq(&self, other: &Pagination) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Pagination
impl Eq for Pagination
impl StructuralPartialEq for Pagination
Auto Trait Implementations§
impl RefUnwindSafe for Pagination
impl Send for Pagination
impl Sync for Pagination
impl Unpin for Pagination
impl UnwindSafe for Pagination
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<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.