[][src]Struct arangors::aql::AqlQueryBuilder

#[must_use]pub struct AqlQueryBuilder<'a, TypedBuilderFields> { /* fields omitted */ }

Builder for AqlQuery instances.

See AqlQuery::builder() for more info.

Implementations

impl<'a, __bind_vars, __count, __batch_size, __cache, __memory_limit, __ttl, __options> AqlQueryBuilder<'a, ((), __bind_vars, __count, __batch_size, __cache, __memory_limit, __ttl, __options)>[src]

pub fn query(
    self,
    query: &'a str
) -> AqlQueryBuilder<'a, ((&'a str,), __bind_vars, __count, __batch_size, __cache, __memory_limit, __ttl, __options)>
[src]

impl<'a, __query, __count, __batch_size, __cache, __memory_limit, __ttl, __options> AqlQueryBuilder<'a, (__query, (), __count, __batch_size, __cache, __memory_limit, __ttl, __options)>[src]

pub fn bind_vars(
    self,
    bind_vars: HashMap<&'a str, Value>
) -> AqlQueryBuilder<'a, (__query, (HashMap<&'a str, Value>,), __count, __batch_size, __cache, __memory_limit, __ttl, __options)>
[src]

impl<'a, __query, __bind_vars, __batch_size, __cache, __memory_limit, __ttl, __options> AqlQueryBuilder<'a, (__query, __bind_vars, (), __batch_size, __cache, __memory_limit, __ttl, __options)>[src]

pub fn count(
    self,
    count: bool
) -> AqlQueryBuilder<'a, (__query, __bind_vars, (Option<bool>,), __batch_size, __cache, __memory_limit, __ttl, __options)>
[src]

impl<'a, __query, __bind_vars, __count, __cache, __memory_limit, __ttl, __options> AqlQueryBuilder<'a, (__query, __bind_vars, __count, (), __cache, __memory_limit, __ttl, __options)>[src]

pub fn batch_size(
    self,
    batch_size: u32
) -> AqlQueryBuilder<'a, (__query, __bind_vars, __count, (Option<u32>,), __cache, __memory_limit, __ttl, __options)>
[src]

impl<'a, __query, __bind_vars, __count, __batch_size, __memory_limit, __ttl, __options> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, (), __memory_limit, __ttl, __options)>[src]

pub fn cache(
    self,
    cache: bool
) -> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, (Option<bool>,), __memory_limit, __ttl, __options)>
[src]

impl<'a, __query, __bind_vars, __count, __batch_size, __cache, __ttl, __options> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, __cache, (), __ttl, __options)>[src]

pub fn memory_limit(
    self,
    memory_limit: u64
) -> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, __cache, (Option<u64>,), __ttl, __options)>
[src]

impl<'a, __query, __bind_vars, __count, __batch_size, __cache, __memory_limit, __options> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, __cache, __memory_limit, (), __options)>[src]

pub fn ttl(
    self,
    ttl: u32
) -> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, __cache, __memory_limit, (Option<u32>,), __options)>
[src]

impl<'a, __query, __bind_vars, __count, __batch_size, __cache, __memory_limit, __ttl> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, __cache, __memory_limit, __ttl, ())>[src]

pub fn options(
    self,
    options: AqlOptions
) -> AqlQueryBuilder<'a, (__query, __bind_vars, __count, __batch_size, __cache, __memory_limit, __ttl, (Option<AqlOptions>,))>
[src]

impl<'a, __bind_vars: AqlQueryBuilder_Optional<HashMap<&'a str, Value>>, __count: AqlQueryBuilder_Optional<Option<bool>>, __batch_size: AqlQueryBuilder_Optional<Option<u32>>, __cache: AqlQueryBuilder_Optional<Option<bool>>, __memory_limit: AqlQueryBuilder_Optional<Option<u64>>, __ttl: AqlQueryBuilder_Optional<Option<u32>>, __options: AqlQueryBuilder_Optional<Option<AqlOptions>>> AqlQueryBuilder<'a, ((&'a str,), __bind_vars, __count, __batch_size, __cache, __memory_limit, __ttl, __options)>[src]

pub fn build(self) -> AqlQuery<'a>[src]

Finalise the builder and create its AqlQuery instance

impl<'a, __query, __count, __batch_size, __cache, __memory_limit, __ttl, __options> AqlQueryBuilder<'a, (__query, (), __count, __batch_size, __cache, __memory_limit, __ttl, __options)>[src]

pub fn bind_var<K, V>(
    self,
    key: K,
    value: V
) -> AqlQueryBuilder<'a, (__query, (HashMap<&'a str, Value>,), __count, __batch_size, __cache, __memory_limit, __ttl, __options)> where
    K: Into<&'a str>,
    V: Into<Value>, 
[src]

pub fn try_bind<K, V>(
    self,
    key: K,
    value: V
) -> Result<AqlQueryBuilder<'a, (__query, (HashMap<&'a str, Value>,), __count, __batch_size, __cache, __memory_limit, __ttl, __options)>, Error> where
    K: Into<&'a str>,
    V: Serialize
[src]

impl<'a, __query, __count, __batch_size, __cache, __memory_limit, __ttl, __options> AqlQueryBuilder<'a, (__query, (HashMap<&'a str, Value>,), __count, __batch_size, __cache, __memory_limit, __ttl, __options)>[src]

pub fn bind_var<K, V>(
    self,
    key: K,
    value: V
) -> AqlQueryBuilder<'a, (__query, (HashMap<&'a str, Value>,), __count, __batch_size, __cache, __memory_limit, __ttl, __options)> where
    K: Into<&'a str>,
    V: Into<Value>, 
[src]

pub fn try_bind<K, V>(
    self,
    key: K,
    value: V
) -> Result<AqlQueryBuilder<'a, (__query, (HashMap<&'a str, Value>,), __count, __batch_size, __cache, __memory_limit, __ttl, __options)>, Error> where
    K: Into<&'a str>,
    V: Serialize
[src]

Auto Trait Implementations

impl<'a, TypedBuilderFields> RefUnwindSafe for AqlQueryBuilder<'a, TypedBuilderFields> where
    TypedBuilderFields: RefUnwindSafe

impl<'a, TypedBuilderFields> Send for AqlQueryBuilder<'a, TypedBuilderFields> where
    TypedBuilderFields: Send

impl<'a, TypedBuilderFields> Sync for AqlQueryBuilder<'a, TypedBuilderFields> where
    TypedBuilderFields: Sync

impl<'a, TypedBuilderFields> Unpin for AqlQueryBuilder<'a, TypedBuilderFields> where
    TypedBuilderFields: Unpin

impl<'a, TypedBuilderFields> UnwindSafe for AqlQueryBuilder<'a, TypedBuilderFields> where
    TypedBuilderFields: UnwindSafe

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, 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.