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