pub struct WhereClause<'a> {
pub clause: &'static str,
pub vals: &'a [&'a (dyn ToSql + Sync)],
}Expand description
A where clause generated by [iff!]
Fields§
§clause: &'static strThe SQL code with placeholders in the form of $1, $2, etc
vals: &'a [&'a (dyn ToSql + Sync)]The values being injected into the prepared statement
Auto Trait Implementations§
impl<'a> Freeze for WhereClause<'a>
impl<'a> !RefUnwindSafe for WhereClause<'a>
impl<'a> Send for WhereClause<'a>
impl<'a> Sync for WhereClause<'a>
impl<'a> Unpin for WhereClause<'a>
impl<'a> !UnwindSafe for WhereClause<'a>
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