Enum async_graphql::context::QueryPathSegment
source · [−]Expand description
A segment in the path to the current query.
This is a borrowed form of PathSegment
used
during execution instead of passed back when errors occur.
Variants
Index(usize)
We are currently resolving an element in a list.
Name(&'a str)
We are currently resolving a field in an object.
Trait Implementations
sourceimpl<'a> Clone for QueryPathSegment<'a>
impl<'a> Clone for QueryPathSegment<'a>
sourcefn clone(&self) -> QueryPathSegment<'a>
fn clone(&self) -> QueryPathSegment<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for QueryPathSegment<'a>
impl<'a> Debug for QueryPathSegment<'a>
sourceimpl<'a> Serialize for QueryPathSegment<'a>
impl<'a> Serialize for QueryPathSegment<'a>
impl<'a> Copy for QueryPathSegment<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for QueryPathSegment<'a>
impl<'a> Send for QueryPathSegment<'a>
impl<'a> Sync for QueryPathSegment<'a>
impl<'a> Unpin for QueryPathSegment<'a>
impl<'a> UnwindSafe for QueryPathSegment<'a>
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