Enum async_graphql::PathSegment 
source · Expand description
A segment of path to a resolver.
This is like QueryPathSegment, but owned and
used as a part of errors instead of during execution.
Variants
Field(String)
A field in an object.
Index(usize)
An index in a list.
Trait Implementations
sourceimpl Clone for PathSegment
 
impl Clone for PathSegment
sourcefn clone(&self) -> PathSegment
 
fn clone(&self) -> PathSegment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl Debug for PathSegment
 
impl Debug for PathSegment
sourceimpl<'de> Deserialize<'de> for PathSegment
 
impl<'de> Deserialize<'de> for PathSegment
sourcefn 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
sourceimpl PartialEq<PathSegment> for PathSegment
 
impl PartialEq<PathSegment> for PathSegment
sourcefn eq(&self, other: &PathSegment) -> bool
 
fn eq(&self, other: &PathSegment) -> bool
sourceimpl Serialize for PathSegment
 
impl Serialize for PathSegment
impl Eq for PathSegment
impl StructuralEq for PathSegment
impl StructuralPartialEq for PathSegment
Auto Trait Implementations
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnwindSafe for PathSegment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.