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 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<GraphQLLanguage>) -> Option<Self>
fn syntax(&self) -> &SyntaxNode<GraphQLLanguage>
fn clone_for_update(&self) -> Self where
Self: Sized,
fn clone_subtree(&self) -> Self where
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 more
sourceimpl Debug for DirectiveDefinition
impl Debug for DirectiveDefinition
sourceimpl Display for DirectiveDefinition
impl Display for DirectiveDefinition
sourceimpl From<DirectiveDefinition> for Definition
impl From<DirectiveDefinition> for Definition
sourcefn from(node: DirectiveDefinition) -> Definition
fn from(node: DirectiveDefinition) -> Definition
Performs the conversion.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DirectiveDefinition) -> bool
fn ne(&self, other: &DirectiveDefinition) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more