[−][src]Struct vinyl::query::Query
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 Debug for Query
[src]
impl BitAnd<Query> for Query
[src]
type Output = Query
The resulting type after applying the &
operator.
fn bitand(self, other: Query) -> Query
[src]
impl PartialEq<Query> for Query
[src]
Auto Trait Implementations
impl Unpin for Query
impl Sync for Query
impl Send for Query
impl UnwindSafe for Query
impl RefUnwindSafe for Query
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,