pub struct Pagination {
pub start: Option<u32>,
pub limit: Option<NonZeroU32>,
}Expand description
Параметры пагинации ISS API (start, limit).
Fields§
§start: Option<u32>Смещение первой записи (start).
limit: Option<NonZeroU32>Максимальный размер страницы (limit).
Implementations§
Source§impl Pagination
impl Pagination
Sourcepub fn with_start(self, start: u32) -> Self
pub fn with_start(self, start: u32) -> Self
Вернуть копию с установленным start.
Sourcepub fn with_limit(self, limit: NonZeroU32) -> Self
pub fn with_limit(self, limit: NonZeroU32) -> Self
Вернуть копию с установленным limit.
Trait Implementations§
Source§impl Clone for Pagination
impl Clone for Pagination
Source§fn clone(&self) -> Pagination
fn clone(&self) -> Pagination
Returns a duplicate 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 Default for Pagination
impl Default for Pagination
Source§fn default() -> Pagination
fn default() -> Pagination
Returns the “default value” for a type. Read more
Source§impl Hash for Pagination
impl Hash for Pagination
Source§impl PartialEq for Pagination
impl PartialEq for Pagination
impl Copy for Pagination
impl Eq for Pagination
impl StructuralPartialEq for Pagination
Auto Trait Implementations§
impl Freeze for Pagination
impl RefUnwindSafe for Pagination
impl Send for Pagination
impl Sync for Pagination
impl Unpin for Pagination
impl UnsafeUnpin 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