[][src]Struct google_datastore1::GqlQuery

pub struct GqlQuery {
    pub named_bindings: Option<HashMap<String, GqlQueryParameter>>,
    pub positional_bindings: Option<Vec<GqlQueryParameter>>,
    pub query_string: Option<String>,
    pub allow_literals: Option<bool>,
}

A GQL query.

This type is not used in any activity, and only used as part of another schema.

Fields

named_bindings: Option<HashMap<String, GqlQueryParameter>>

For each non-reserved named binding site in the query string, there must be a named parameter with that name, but not necessarily the inverse.

Key must match regex A-Za-z_$*, must not match regex __.*__, and must not be "".

positional_bindings: Option<Vec<GqlQueryParameter>>

Numbered binding site @1 references the first numbered parameter, effectively using 1-based indexing, rather than the usual 0.

For each binding site numbered i in query_string, there must be an i-th numbered parameter. The inverse must also be true.

query_string: Option<String>

A string of the format described here.

allow_literals: Option<bool>

When false, the query string must not contain any literals and instead must bind all values. For example, SELECT * FROM Kind WHERE a = 'string literal' is not allowed, while SELECT * FROM Kind WHERE a = @value is.

Trait Implementations

impl Part for GqlQuery[src]

impl Default for GqlQuery[src]

impl Clone for GqlQuery[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GqlQuery[src]

impl Serialize for GqlQuery[src]

impl<'de> Deserialize<'de> for GqlQuery[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]