Struct gurkle::RequestBody[][src]

pub struct RequestBody {
    pub variables: Value,
    pub query: &'static str,
    pub operation_name: &'static str,
}

The form in which queries are sent over HTTP in most implementations.

Fields

variables: Value

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 Clone for RequestBody[src]

impl Debug for RequestBody[src]

impl Deserialize<'static> for RequestBody[src]

impl Serialize for RequestBody[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,