[−][src]Struct aragog::query::QueryItem
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
Auto Trait Implementations
impl RefUnwindSafe for QueryItem
impl Send for QueryItem
impl Sync for QueryItem
impl Unpin for QueryItem
impl UnwindSafe for QueryItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,