pub struct NextPayload<S> {
pub data: Value<S>,
pub errors: Vec<ExecutionError<S>>,
}
Available on crate feature
graphql-transport-ws
only.Expand description
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§
source§impl<S: Debug> Debug for NextPayload<S>
impl<S: Debug> Debug for NextPayload<S>
source§impl<S: PartialEq> PartialEq for NextPayload<S>
impl<S: PartialEq> PartialEq for NextPayload<S>
source§fn eq(&self, other: &NextPayload<S>) -> bool
fn eq(&self, other: &NextPayload<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S> Serialize for NextPayload<S>where
S: Serialize,
impl<S> Serialize for NextPayload<S>where
S: Serialize,
impl<S> StructuralPartialEq for NextPayload<S>
Auto Trait Implementations§
impl<S> Freeze for NextPayload<S>where
S: Freeze,
impl<S> RefUnwindSafe for NextPayload<S>where
S: RefUnwindSafe,
impl<S> Send for NextPayload<S>where
S: Send,
impl<S> Sync for NextPayload<S>where
S: Sync,
impl<S> Unpin for NextPayload<S>where
S: Unpin,
impl<S> UnwindSafe for NextPayload<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more