[][src]Struct format_sql_query::Predicates

pub struct Predicates(_);

Collection of boolean predicates.

Methods

impl Predicates[src]

pub fn new() -> Predicates[src]

Create empty collection.

pub fn from<S: Display + 'static>(predicate: S) -> Predicates[src]

Creates collection containing given predicate.

pub fn from_all<S, I, IT>(predicates: I) -> Self where
    S: Display + 'static,
    I: IntoIterator<Item = S, IntoIter = IT>,
    IT: Iterator<Item = S>, 
[src]

Crates collection containing given predicates.

pub fn as_where<'s>(&'s self) -> PredicateStatement<'s>[src]

Gets WHERE statement with predicates.

pub fn and_push<S: Display + 'static>(&mut self, predicate: S)[src]

Appends predicate.

pub fn and_extend<S, I, IT>(&mut self, predicates: I) where
    S: Display + 'static,
    I: IntoIterator<Item = S, IntoIter = IT>,
    IT: Iterator<Item = S>, 
[src]

Appends all predicates.

pub fn and<S: Display + 'static>(self, predicate: S) -> Self[src]

Appends predicate with fluid API.

pub fn and_all<S, I, IT>(self, predicates: I) -> Self where
    S: Display + 'static,
    I: IntoIterator<Item = S, IntoIter = IT>,
    IT: Iterator<Item = S>, 
[src]

Appends all predicates with fluid API.

Trait Implementations

impl IntoIterator for Predicates[src]

type Item = Box<dyn Display>

The type of the elements being iterated over.

type IntoIter = IntoIter<Box<dyn Display>>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]