pub struct GraphQLParams {
pub query: Option<String>,
pub operation_name: Option<String>,
pub variables: HashMap<String, Value>,
pub extensions: Option<HashMap<String, Value>>,
}Expand description
The GraphQL parameters parsed from the HTTP request body by the router.
This includes the query, operationName, variables, and extensions
Learn more about GraphQL-over-HTTP params
Fields§
§query: Option<String>The GraphQL query string parsed from the HTTP request body by the router
This contains the source text of a GraphQL query, mutation, or subscription sent by the client in the request body.
It can be None if the client did not send a query string in the request body.
operation_name: Option<String>The operation name parsed from the HTTP request body by the router
This is the name of the operation that the client wants to execute, sent in the request body.
It is optional and can be None if the client did not specify an operation
variables: HashMap<String, Value>The variables map parsed from the HTTP request body by the router This is a map of variable names to their values sent by the client in the request Learn more about GraphQL variables
extensions: Option<HashMap<String, Value>>Trait Implementations§
Source§impl Debug for GraphQLParams
impl Debug for GraphQLParams
Source§impl Default for GraphQLParams
impl Default for GraphQLParams
Source§fn default() -> GraphQLParams
fn default() -> GraphQLParams
Source§impl<'de> Deserialize<'de> for GraphQLParams
impl<'de> Deserialize<'de> for GraphQLParams
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>,
Auto Trait Implementations§
impl Freeze for GraphQLParams
impl !RefUnwindSafe for GraphQLParams
impl Send for GraphQLParams
impl Sync for GraphQLParams
impl Unpin for GraphQLParams
impl UnsafeUnpin for GraphQLParams
impl !UnwindSafe for GraphQLParams
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request