pub struct DirectiveLocationSyntax<'src> {
pub pipe: Option<GraphQLToken<'src>>,
pub token: GraphQLToken<'src>,
}Expand description
Syntax detail for a DirectiveLocation.
Fields§
§pipe: Option<GraphQLToken<'src>>The | pipe token before this location (None for
the first location).
token: GraphQLToken<'src>The location name token (e.g. FIELD, QUERY).
Trait Implementations§
Source§impl<'src> Clone for DirectiveLocationSyntax<'src>
impl<'src> Clone for DirectiveLocationSyntax<'src>
Source§fn clone(&self) -> DirectiveLocationSyntax<'src>
fn clone(&self) -> DirectiveLocationSyntax<'src>
Returns a duplicate 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<'src> Debug for DirectiveLocationSyntax<'src>
impl<'src> Debug for DirectiveLocationSyntax<'src>
Source§impl<'src> PartialEq for DirectiveLocationSyntax<'src>
impl<'src> PartialEq for DirectiveLocationSyntax<'src>
Source§fn eq(&self, other: &DirectiveLocationSyntax<'src>) -> bool
fn eq(&self, other: &DirectiveLocationSyntax<'src>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'src> StructuralPartialEq for DirectiveLocationSyntax<'src>
Auto Trait Implementations§
impl<'src> Freeze for DirectiveLocationSyntax<'src>
impl<'src> RefUnwindSafe for DirectiveLocationSyntax<'src>
impl<'src> Send for DirectiveLocationSyntax<'src>
impl<'src> Sync for DirectiveLocationSyntax<'src>
impl<'src> Unpin for DirectiveLocationSyntax<'src>
impl<'src> UnsafeUnpin for DirectiveLocationSyntax<'src>
impl<'src> UnwindSafe for DirectiveLocationSyntax<'src>
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