Struct artemis::QueryBody[][src]

pub struct QueryBody<Variables: Serialize + Send + Sync + Clone> {
    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: Clone + Serialize + Send + Sync> Clone for QueryBody<Variables>[src]

impl<Variables: Debug + Serialize + Send + Sync + Clone> Debug for QueryBody<Variables>[src]

impl<Variables: Serialize + Send + Sync + Clone> 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>

impl<Variables> Sync for QueryBody<Variables>

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> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,