pub struct Basic<T> { /* private fields */ }Implementations§
Source§impl<T> Basic<T>
impl<T> Basic<T>
pub fn new(col: &'static str, field: &'static str) -> Self
pub fn equal(self, v: impl Into<T>) -> Box<ClauseColValEqual<T>>where
T: Param,
pub fn not_equal(self, v: impl Into<T>) -> Box<ClauseColVal<T>>where
T: Param,
Sourcepub fn in_list<P>(self, slice: &[P]) -> Box<ClauseColValIn<T>>
pub fn in_list<P>(self, slice: &[P]) -> Box<ClauseColValIn<T>>
Will write SQL “IN” to check that the value is in a list
Sourcepub fn not_in_list<P>(self, slice: &[P]) -> Box<ClauseColValIn<T>>
pub fn not_in_list<P>(self, slice: &[P]) -> Box<ClauseColValIn<T>>
Will write SQL “NOT IN ()” to check that the value is not in a list
Trait Implementations§
Source§impl<T> AsFieldName<T> for Basic<T>
impl<T> AsFieldName<T> for Basic<T>
impl<T: Clone> Copy for Basic<T>
Auto Trait Implementations§
impl<T> Forget for Basic<T>
impl<T> Freeze for Basic<T>where
PhantomData<T>: Freeze,
impl<T> Move for Basic<T>
impl<T> RefUnwindSafe for Basic<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for Basic<T>where
PhantomData<T>: Send,
impl<T> Sync for Basic<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Basic<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Basic<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for Basic<T>where
PhantomData<T>: UnwindSafe,
Blanket Implementations§
impl<T> AsyncNeedsSyncSend for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more