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 StructuralEq 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 Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
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
ยงimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
ยงimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
ยง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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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::Requestsourceยงimpl<T> Variant for Twhere
T: Any + Clone + SendSync,
impl<T> Variant for Twhere T: Any + Clone + SendSync,
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>.