Enum async_graphql::context::QueryPathSegment
source · pub enum QueryPathSegment<'a> {
Index(usize),
Name(&'a str),
}
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§
source§impl<'a> Clone for QueryPathSegment<'a>
impl<'a> Clone for QueryPathSegment<'a>
source§fn clone(&self) -> QueryPathSegment<'a>
fn clone(&self) -> QueryPathSegment<'a>
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<'a> Debug for QueryPathSegment<'a>
impl<'a> Debug for QueryPathSegment<'a>
source§impl<'a> Serialize for QueryPathSegment<'a>
impl<'a> Serialize for QueryPathSegment<'a>
impl<'a> Copy for QueryPathSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for QueryPathSegment<'a>
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§
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<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)