Struct apollo_parser::ast::DirectiveDefinition
source · [−]pub struct DirectiveDefinition { /* private fields */ }
Implementations
sourceimpl DirectiveDefinition
impl DirectiveDefinition
pub fn description(&self) -> Option<Description>
pub fn directive_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn at_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn name(&self) -> Option<Name>
pub fn arguments_definition(&self) -> Option<ArgumentsDefinition>
pub fn repeatable_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn on_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn directive_locations(&self) -> Option<DirectiveLocations>
Trait Implementations
sourceimpl AstNode for DirectiveDefinition
impl AstNode for DirectiveDefinition
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn source_string(&self) -> String
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
sourceimpl Clone for DirectiveDefinition
impl Clone for DirectiveDefinition
sourcefn clone(&self) -> DirectiveDefinition
fn clone(&self) -> DirectiveDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DirectiveDefinition
impl Debug for DirectiveDefinition
sourceimpl From<DirectiveDefinition> for Definition
impl From<DirectiveDefinition> for Definition
sourcefn from(node: DirectiveDefinition) -> Definition
fn from(node: DirectiveDefinition) -> Definition
Converts to this type from the input type.
sourceimpl Hash for DirectiveDefinition
impl Hash for DirectiveDefinition
sourceimpl PartialEq<DirectiveDefinition> for DirectiveDefinition
impl PartialEq<DirectiveDefinition> for DirectiveDefinition
sourcefn eq(&self, other: &DirectiveDefinition) -> bool
fn eq(&self, other: &DirectiveDefinition) -> bool
impl Eq for DirectiveDefinition
impl StructuralEq for DirectiveDefinition
impl StructuralPartialEq for DirectiveDefinition
Auto Trait Implementations
impl !RefUnwindSafe for DirectiveDefinition
impl !Send for DirectiveDefinition
impl !Sync for DirectiveDefinition
impl Unpin for DirectiveDefinition
impl !UnwindSafe for DirectiveDefinition
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