Struct derive_sql::SimpleLimit
source · pub struct SimpleLimit { /* private fields */ }Expand description
Convenient struct for implementing a limit, ie a struct that generates the content of a LIMIT value clause
Implementations§
source§impl SimpleLimit
impl SimpleLimit
pub fn and(self, next: Box<dyn Selectable>) -> SimpleLimit
Trait Implementations§
source§impl Selectable for SimpleLimit
impl Selectable for SimpleLimit
source§fn filter(&self) -> Option<String>
fn filter(&self) -> Option<String>
Output filter statement - which will be appended to the
WHERE clause - such as: Read moresource§fn limit(&self) -> Option<usize>
fn limit(&self) -> Option<usize>
Output limit statement - which will be appended to the
LIMIT clause - such as: Read moresource§fn offset(&self) -> Option<usize>
fn offset(&self) -> Option<usize>
Output offset statement - which will be appended to the
OFFSET clause - such as: Read morefn statement(&self) -> String
source§impl TryFrom<()> for SimpleLimit
impl TryFrom<()> for SimpleLimit
Auto Trait Implementations§
impl !RefUnwindSafe for SimpleLimit
impl !Send for SimpleLimit
impl !Sync for SimpleLimit
impl Unpin for SimpleLimit
impl !UnwindSafe for SimpleLimit
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