Struct rbatis::sql::page::PageRequest
source · pub struct PageRequest {
pub total: u64,
pub page_no: u64,
pub page_size: u64,
pub do_count: bool,
}👎Deprecated: please use
rbatis::plugin::page::PageRequestFields§
§total: u64👎Deprecated: please use
rbatis::plugin::page::PageRequesttotal num
page_no: u64👎Deprecated: please use
rbatis::plugin::page::PageRequestcurrent page index default 1,range=1…MAX
page_size: u64👎Deprecated: please use
rbatis::plugin::page::PageRequestpage page_size default 10
do_count: bool👎Deprecated: please use
rbatis::plugin::page::PageRequestControl whether to execute count statements to count the total number
Implementations§
source§impl PageRequest
impl PageRequest
pub fn new(page_no: u64, page_size: u64) -> Self
👎Deprecated: please use
rbatis::plugin::pagepub fn new_option(page_no: Option<u64>, page_size: Option<u64>) -> Self
👎Deprecated: please use
rbatis::plugin::pagepub fn new_total(page_no: u64, page_size: u64, total: u64) -> Self
👎Deprecated: please use
rbatis::plugin::pagepub fn set_total(self, total: u64) -> Self
👎Deprecated: please use
rbatis::plugin::pagepub fn set_page_size(self, arg: u64) -> Self
👎Deprecated: please use
rbatis::plugin::pagepub fn set_page_no(self, arg: u64) -> Self
👎Deprecated: please use
rbatis::plugin::pagesourcepub fn set_do_count(self, arg: bool) -> Self
👎Deprecated: please use rbatis::plugin::page
pub fn set_do_count(self, arg: bool) -> Self
rbatis::plugin::pageControl whether to execute count statements to count the total number
Trait Implementations§
source§impl Clone for PageRequest
impl Clone for PageRequest
source§fn clone(&self) -> PageRequest
fn clone(&self) -> PageRequest
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 PageRequest
impl Debug for PageRequest
source§impl Default for PageRequest
impl Default for PageRequest
source§impl<'de> Deserialize<'de> for PageRequest
impl<'de> Deserialize<'de> for PageRequest
source§fn 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
source§impl IPageRequest for PageRequest
impl IPageRequest for PageRequest
fn page_size(&self) -> u64
fn page_no(&self) -> u64
fn total(&self) -> u64
source§fn do_count(&self) -> bool
fn do_count(&self) -> bool
Control whether to execute count statements to count the total number
fn set_total(&mut self, total: u64)
fn set_page_size(&mut self, arg: u64)
fn set_page_no(&mut self, arg: u64)
source§fn set_do_count(&mut self, arg: bool)
fn set_do_count(&mut self, arg: bool)
Control execute select count(1) from table
source§fn offset_limit(&self) -> u64
fn offset_limit(&self) -> u64
sum offset_limit
source§fn search_count(&self) -> bool
fn search_count(&self) -> bool
👎Deprecated: please use do_count()
source§fn set_search_count(&mut self, arg: bool)
fn set_search_count(&mut self, arg: bool)
👎Deprecated: please use set_do_count()
source§impl PartialEq for PageRequest
impl PartialEq for PageRequest
source§fn 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 ==.source§impl Serialize for PageRequest
impl Serialize for PageRequest
impl Eq 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§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more