Enum apollo_router::graphql::JsonPathElement
source · pub enum JsonPathElement {
Flatten,
Index(usize),
Fragment(String),
Key(String),
}Expand description
A GraphQL path element that is composes of strings or numbers.
e.g /book/3/name
Variants§
Flatten
A path element that given an array will flatmap the content.
Index(usize)
An index path element.
Fragment(String)
A fragment application
Key(String)
A key path element.
Trait Implementations§
source§impl Clone for PathElement
impl Clone for PathElement
source§fn clone(&self) -> PathElement
fn clone(&self) -> PathElement
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 PathElement
impl Debug for PathElement
source§impl<'de> Deserialize<'de> for PathElement
impl<'de> Deserialize<'de> for PathElement
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 FromIterator<PathElement> for Path
impl FromIterator<PathElement> for Path
source§fn from_iter<T: IntoIterator<Item = PathElement>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PathElement>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl Hash for PathElement
impl Hash for PathElement
source§impl PartialEq for PathElement
impl PartialEq for PathElement
source§fn eq(&self, other: &PathElement) -> bool
fn eq(&self, other: &PathElement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PathElement
impl Serialize for PathElement
impl Eq for PathElement
impl StructuralEq for PathElement
impl StructuralPartialEq for PathElement
Auto Trait Implementations§
impl RefUnwindSafe for PathElement
impl Send for PathElement
impl Sync for PathElement
impl Unpin for PathElement
impl UnwindSafe for PathElement
Blanket Implementations§
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> AnySync for T
impl<T> AnySync for T
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§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::Requestsource§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>.