[][src]Struct entity::query::Query

pub struct Query(_);

Represents a generic query to find ents within some database

Implementations

impl Query[src]

pub fn new(__0: Vec<Filter>) -> Query[src]

impl Query[src]

pub fn chain(self, filter: Filter) -> Self[src]

Consumes query, producing a new query with the additional filter added to the end of the filters to be applied

pub fn add_filter(&mut self, filter: Filter) -> &mut Self[src]

Updates the query by adding an additional filter to the end

pub fn where_id<P: Into<TypedPredicate<Id>>>(self, p: P) -> Self[src]

pub fn where_type<P: Into<TypedPredicate<String>>>(self, p: P) -> Self[src]

pub fn where_created<P: Into<TypedPredicate<u64>>>(self, p: P) -> Self[src]

pub fn where_last_updated<P: Into<TypedPredicate<u64>>>(self, p: P) -> Self[src]

pub fn where_field<S: Into<String>, P: Into<Predicate>>(
    self,
    name: S,
    p: P
) -> Self
[src]

pub fn where_edge<S: Into<String>, F: Into<Filter>>(
    self,
    name: S,
    filter: F
) -> Self
[src]

pub fn where_into_edge<S: Into<String>>(self, name: S) -> Self[src]

Trait Implementations

impl Clone for Query[src]

impl Debug for Query[src]

impl Default for Query[src]

impl EntQuery for Query[src]

type Output = Vec<Box<dyn Ent>>

impl Extend<Filter> for Query[src]

pub fn extend<T: IntoIterator<Item = Filter>>(&mut self, iter: T)[src]

Extends the query's filters with the contents of the iterator

impl IntoIterator for Query[src]

type Item = <Vec<Filter> as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = <Vec<Filter> as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DynClone for T where
    T: Clone
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.