[][src]Struct graphql_client::QueryBody

pub struct QueryBody<Variables> {
    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>[src]

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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.