Struct derive_sql::SimpleFilter
source · pub struct SimpleFilter { /* private fields */ }Expand description
Convenient struct for implementing a simple filter, ie a struct that generates the content of a simple WHERE a = value clause
Implementations§
source§impl SimpleFilter
impl SimpleFilter
pub fn and(self, next: Box<dyn Selectable>) -> SimpleFilter
Trait Implementations§
source§impl Selectable for SimpleFilter
impl Selectable for SimpleFilter
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 SimpleFilter
impl TryFrom<()> for SimpleFilter
Auto Trait Implementations§
impl !RefUnwindSafe for SimpleFilter
impl !Send for SimpleFilter
impl !Sync for SimpleFilter
impl Unpin for SimpleFilter
impl !UnwindSafe for SimpleFilter
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