Struct apollo_router::graphql::IncrementalResponse
source · #[non_exhaustive]pub struct IncrementalResponse {
pub label: Option<String>,
pub data: Option<Value>,
pub path: Option<Path>,
pub errors: Vec<Error>,
pub extensions: Map<ByteString, Value>,
}Expand description
A graphql incremental response.
Used with @defer
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label: Option<String>The label that was passed to the defer or stream directive for this patch.
data: Option<Value>The response data.
path: Option<Path>The path that the data should be merged at.
errors: Vec<Error>The optional graphql errors encountered.
extensions: Map<ByteString, Value>The optional graphql extensions.
Implementations§
source§impl IncrementalResponse
impl IncrementalResponse
sourcepub fn append_errors(&mut self, errors: &mut Vec<Error>)
pub fn append_errors(&mut self, errors: &mut Vec<Error>)
append_errors default the errors path with the one provided.
Trait Implementations§
source§impl Clone for IncrementalResponse
impl Clone for IncrementalResponse
source§fn clone(&self) -> IncrementalResponse
fn clone(&self) -> IncrementalResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for IncrementalResponse
impl Debug for IncrementalResponse
source§impl Default for IncrementalResponse
impl Default for IncrementalResponse
source§fn default() -> IncrementalResponse
fn default() -> IncrementalResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IncrementalResponse
impl<'de> Deserialize<'de> for IncrementalResponse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for IncrementalResponse
impl PartialEq for IncrementalResponse
source§fn eq(&self, other: &IncrementalResponse) -> bool
fn eq(&self, other: &IncrementalResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for IncrementalResponse
impl Serialize for IncrementalResponse
impl Eq for IncrementalResponse
impl StructuralPartialEq for IncrementalResponse
Auto Trait Implementations§
impl RefUnwindSafe for IncrementalResponse
impl Send for IncrementalResponse
impl Sync for IncrementalResponse
impl Unpin for IncrementalResponse
impl UnwindSafe for IncrementalResponse
Blanket Implementations§
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.
source§impl<T> Serializable for Twhere
T: Serialize,
impl<T> Serializable for Twhere
T: Serialize,
source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.