[][src]Struct aragog::query::QueryItem

pub struct QueryItem { /* fields omitted */ }

Struct representing one AQL comparison in a Query.

Implementations

impl QueryItem[src]

pub fn field(field_name: &str) -> QueryItemBuilder[src]

Instantiates a new builder for a QueryItem with the specified field_name. The field will be used as the left value of the comparison.

Example

let query_item_builder = QueryItem::field("username");

pub fn all(array_field_name: &str) -> QueryItemBuilder[src]

Instantiates a new builder for a QueryItem with the specified array_field_name. The field should be an array, as all items in the array will have to match the comparison to succeed.

Example

In this example the query will render all documents where every price is above 10.

Query::new(QueryItem::all("prices").greater_or_equal(10));

pub fn none(array_field_name: &str) -> QueryItemBuilder[src]

Instantiates a new builder for a QueryItem with the specified array_field_name. The field should be an array, none of the items in the array can match the comparison to succeed.

Example

In this example the query will render all documents where every price is not above 10.

Query::new(QueryItem::none("prices").greater_or_equal(10));

pub fn any(array_field_name: &str) -> QueryItemBuilder[src]

Instantiates a new builder for a QueryItem with the specified array_field_name. The field should be an array, at least one of the items in the array must match the comparison to succeed.

Example

In this example the query will render all documents where at least one price is above 10.

Query::new(QueryItem::any("prices").greater_or_equal(10));

Trait Implementations

impl Clone for QueryItem[src]

impl Debug for QueryItem[src]

impl Display for QueryItem[src]

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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.