Struct juniper_graphql_ws::DataPayload[][src]

pub struct DataPayload<S> {
    pub data: Value<S>,
    pub errors: Vec<ExecutionError<S>>,
}

Sent after execution of an operation. For queries and mutations, this is sent to the client once. For subscriptions, this is sent for every event in the event stream.

Fields

data: Value<S>

The result data.

errors: Vec<ExecutionError<S>>

The errors that have occurred during execution. Note that parse and validation errors are not included here. They are sent via Error messages.

Trait Implementations

impl<S: Debug> Debug for DataPayload<S>[src]

impl<S: PartialEq> PartialEq<DataPayload<S>> for DataPayload<S>[src]

impl<S> Serialize for DataPayload<S> where
    S: ScalarValue
[src]

impl<S> StructuralPartialEq for DataPayload<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for DataPayload<S> where
    S: RefUnwindSafe

impl<S> Send for DataPayload<S> where
    S: Send

impl<S> Sync for DataPayload<S> where
    S: Sync

impl<S> Unpin for DataPayload<S> where
    S: Unpin

impl<S> UnwindSafe for DataPayload<S> where
    S: 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.