Struct async_graphql::context::QueryPathNode [−][src]
pub struct QueryPathNode<'a> {
pub parent: Option<&'a QueryPathNode<'a>>,
pub segment: QueryPathSegment<'a>,
}Expand description
A path to the current query.
The path is stored as a kind of reverse linked list.
Fields
parent: Option<&'a QueryPathNode<'a>>The parent node to this, if there is one.
segment: QueryPathSegment<'a>The current path segment being resolved.
Implementations
Get the current field name.
This traverses all the parents of the node until it finds one that is a field name.
Get the path represented by Vec<String>; numbers will be stringified.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for QueryPathNode<'a>
impl<'a> Send for QueryPathNode<'a>
impl<'a> Sync for QueryPathNode<'a>
impl<'a> Unpin for QueryPathNode<'a>
impl<'a> UnwindSafe for QueryPathNode<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more