pub struct PageRequest {
pub total: u64,
pub page_no: u64,
pub page_size: u64,
pub search_count: bool,
}
Fields
total: u64
total num
page_no: u64
current page index
page_size: u64
page page_size default 10
search_count: bool
Implementations
sourceimpl PageRequest
impl PageRequest
Trait Implementations
sourceimpl Clone for PageRequest
impl Clone for PageRequest
sourcefn clone(&self) -> PageRequest
fn clone(&self) -> PageRequest
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 more
sourceimpl Debug for PageRequest
impl Debug for PageRequest
sourceimpl Default for PageRequest
impl Default for PageRequest
sourceimpl<'de> Deserialize<'de> for PageRequest
impl<'de> Deserialize<'de> for PageRequest
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl IPageRequest for PageRequest
impl IPageRequest for PageRequest
fn get_page_size(&self) -> u64
fn get_page_no(&self) -> u64
fn get_total(&self) -> u64
fn is_search_count(&self) -> bool
fn set_total(self, total: u64) -> Self
fn set_page_size(self, arg: u64) -> Self
fn set_page_no(self, arg: u64) -> Self
fn set_search_count(self, arg: bool) -> Self
sourceimpl PartialEq<PageRequest> for PageRequest
impl PartialEq<PageRequest> for PageRequest
sourcefn eq(&self, other: &PageRequest) -> bool
fn eq(&self, other: &PageRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PageRequest) -> bool
fn ne(&self, other: &PageRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for PageRequest
impl Serialize for PageRequest
impl Eq for PageRequest
impl StructuralEq for PageRequest
impl StructuralPartialEq for PageRequest
Auto Trait Implementations
impl RefUnwindSafe for PageRequest
impl Send for PageRequest
impl Sync for PageRequest
impl Unpin for PageRequest
impl UnwindSafe for PageRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.