[][src]Struct graphql_client::QueryBody

pub struct QueryBody<Variables> where
    Variables: Serialize
{ pub variables: Variables, pub query: &'static str, pub operation_name: &'static str, }

The form in which queries are sent over HTTP in most implementations. This will be built using the GraphQLQuery trait normally.

Fields

variables: Variables

The values for the variables. They must match those declared in the queries. This should be the Variables struct from the generated module corresponding to the query.

query: &'static str

The GraphQL query, as a string.

operation_name: &'static str

The GraphQL operation name, as a string.

Trait Implementations

impl<Variables: Debug> Debug for QueryBody<Variables> where
    Variables: Serialize
[src]

impl<Variables> Serialize for QueryBody<Variables> where
    Variables: Serialize,
    Variables: Serialize
[src]

impl<Variables> Deserialize<'static> for QueryBody<Variables> where
    Variables: Serialize,
    Variables: Deserialize<'static>, 
[src]

Auto Trait Implementations

impl<Variables> Send for QueryBody<Variables> where
    Variables: Send

impl<Variables> Sync for QueryBody<Variables> where
    Variables: Sync

Blanket Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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