pub struct RequestParameters {
pub query: Document,
pub operation_name: Option<String>,
pub variables: Map<String, Value>,
pub extensions: Map<String, Value>,
}
Expand description
The parameters of a GraphQL-over-HTTP request.
As specified in the section 5.1 Request Parameters of the GraphQL-over-HTTP specification.
Fields§
§query: Document
The string representation of the Source Text of a GraphQL Document as specified in the Language section of the GraphQL specification.
operation_name: Option<String>
Optional name of the operation in the Document to execute.
variables: Map<String, Value>
Values for any Variables defined by the Operation.
extensions: Map<String, Value>
Reserved for implementors to extend the protocol however they see fit.
Trait Implementations§
Source§impl Clone for RequestParameters
impl Clone for RequestParameters
Source§fn clone(&self) -> RequestParameters
fn clone(&self) -> RequestParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RequestParameters
impl Debug for RequestParameters
Source§impl IntoRequestParameters for RequestParameters
impl IntoRequestParameters for RequestParameters
Source§fn into_request_parameters(self) -> RequestParameters
fn into_request_parameters(self) -> RequestParameters
Consumes
self
and returns a RequestParameters
struct.Source§impl PartialEq for RequestParameters
impl PartialEq for RequestParameters
Source§impl Serialize for RequestParameters
impl Serialize for RequestParameters
impl Eq for RequestParameters
impl StructuralPartialEq for RequestParameters
Auto Trait Implementations§
impl Freeze for RequestParameters
impl RefUnwindSafe for RequestParameters
impl Send for RequestParameters
impl Sync for RequestParameters
impl Unpin for RequestParameters
impl UnwindSafe for RequestParameters
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.