[][src]Struct vinyl::query::Query

pub struct Query {
    pub qc: QueryComponent,
}

Query is the basic component of all queries. Every query expression outputs a Query. Query is not used directly except for in the case of Query::not

Fields

qc: QueryComponent

the underlyingproto QueryComponent

Methods

impl Query[src]

pub fn and(self, other: Query) -> Query[src]

Check that a set of components all evaluate to true for a given record.

use vinyl_core::query::field;

field("price")
    .equals(4.3)
    .and(field("type").equals("rose"));

pub fn or(self, other: Query) -> Query[src]

Check that any of a set of components evaluate to true for a given record

pub fn not(other: Query) -> Query[src]

Negate a component test

use vinyl_core::query::{field, Query};

let query = Query::not(
    field("price").equals(4.3),
);

Trait Implementations

impl PartialEq<Query> for Query[src]

impl BitAnd<Query> for Query[src]

type Output = Query

The resulting type after applying the & operator.

impl Debug for Query[src]

Auto Trait Implementations

impl Send for Query

impl Unpin for Query

impl Sync for Query

impl UnwindSafe for Query

impl RefUnwindSafe for Query

Blanket Implementations

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

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

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]

impl<T> Erased for T