pub struct GqlQuery {
pub allow_literals: Option<bool>,
pub named_bindings: Option<HashMap<String, GqlQueryParameter>>,
pub positional_bindings: Option<Vec<GqlQueryParameter>>,
pub query_string: Option<String>,
}
Expand description
A GQL query.
This type is not used in any activity, and only used as part of another schema.
Fields§
§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.
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GqlQuery
impl<'de> Deserialize<'de> for GqlQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GqlQuery
Auto Trait Implementations§
impl Freeze for GqlQuery
impl RefUnwindSafe for GqlQuery
impl Send for GqlQuery
impl Sync for GqlQuery
impl Unpin for GqlQuery
impl UnwindSafe for GqlQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more