[][src]Enum avocado::dsl::filter::Filter

pub enum Filter {
    Value(Bson),
    Doc(FilterDoc),
    Array(Vec<Filter>),
    Eq(Bson),
    Ne(Bson),
    Gt(Bson),
    Lt(Bson),
    Gte(Bson),
    Lte(Bson),
    In(Vec<Bson>),
    Nin(Vec<Bson>),
    Not(Box<Filter>),
    Exists(bool),
    Type(BsonType),
    JsonSchema(Document),
    Regex(Cow<'static, str>, RegexOpts),
    All(Vec<Bson>),
    ElemMatch(FilterDoc),
    Size(usize),
}

A query/filter condition.

Variants

Matches if the field has the given value.

A sub-query of multiple path => filter specifiers.

A sub-query of multiple filters.

Matches if the field is equal to the given value.

Matches if the field is not equal to the given value.

Matches if the field is greater than the given value.

Matches if the field is less than the given value.

Matches if the field is greater than or equal to the given value.

Matches if the field is less than or equal to the given value.

Matches if the value of field is any of the specified values.

Matches if the value of field is none of the specified values.

Matches if the field does not satisfy the specified subquery.

If the argument is true, matches if the field exists in the enclosing document. If it is false, then matches if the field does not exist.

Matches if the type of the field is any of the specified types.

Matches if the value of the field satisfies the given JSON schema.

Matches if the field is a string satisfying the given regular expression.

Matches if the field is an array containing all the specified values.

Matches if the field is an array containing at least one element that matches all of the specified subqueries.

Matches if the field is an array whose length is the given value.

Trait Implementations

impl PartialEq<Filter> for Filter
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Into<Bson>> From<T> for Filter
[src]

Filter::from(some_bson_value) results in Filter::Value(some_bson_value).

Performs the conversion.

impl From<Document<Filter>> for Filter
[src]

Filter::from(FilterDoc) yields a Filter::Doc(...).

Performs the conversion.

impl Clone for Filter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Filter
[src]

Formats the value using the given formatter. Read more

impl Serialize for Filter
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Filter

impl Sync for Filter

Blanket Implementations

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

Performs the conversion.

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<T> Same for T

Should always be Self