[][src]Enum entity::Filter

pub enum Filter {
    Id(TypedPredicate<Id>),
    Type(TypedPredicate<String>),
    Created(TypedPredicate<u64>),
    LastUpdated(TypedPredicate<u64>),
    Field(StringPredicate),
    Edge(StringBox<Filter>),
    IntoEdge(String),
}

Represents some filter to apply against an ent when searching through a database

Variants

Filters by the ent's id

Filters by the ent's type

Filters by the ent's creation timestamp

LastUpdated(TypedPredicate<u64>)

Filters by the ent's last updated timestamp

Field(StringPredicate)

Filters by an ent's field

Edge(StringBox<Filter>)

Filters by an ent connected by an edge; not the same as Filter::IntoEdge, which converts an ent to its edge's ents

IntoEdge(String)

(Special case) Filters by converting an ent into the ents on its edge

Implementations

impl Filter[src]

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

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

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

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

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

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

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

Trait Implementations

impl Clone for Filter[src]

impl Debug for Filter[src]

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

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.