Enum mongod::Comparator[][src]

pub enum Comparator<T> where
    T: TryInto<Bson>,
    T::Error: Into<Error>, 
{ Eq(T), Gt(T), Gte(T), In(Vec<T>), Lt(T), Lte(T), Ne(T), Nin(Vec<T>), Null, }
Expand description

The BSON comparators for comparison of different BSON type values

Variants

Eq

Matches values that are equal to a specified value.

Tuple Fields of Eq

0: T
Gt

Matches values that are greater than a specified value.

Tuple Fields of Gt

0: T
Gte

Matches values that are greater than or equal to a specified value.

Tuple Fields of Gte

0: T
In

Matches any of the values specified in an array.

Tuple Fields of In

0: Vec<T>
Lt

Matches values that are less than a specified value.

Tuple Fields of Lt

0: T
Lte

Matches values that are less than or equal to a specified value.

Tuple Fields of Lte

0: T
Ne

Matches all values that are not equal to a specified value.

Tuple Fields of Ne

0: T
Nin

Matches none of the values specified in an array.

Tuple Fields of Nin

0: Vec<T>
Null

Matches values that are equal to null.

Trait Implementations

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.