Struct graphql_parser::schema::DirectiveDefinition
source · pub struct DirectiveDefinition<'a, T: Text<'a>> {
pub position: Pos,
pub description: Option<String>,
pub name: T::Value,
pub arguments: Vec<InputValue<'a, T>>,
pub repeatable: bool,
pub locations: Vec<DirectiveLocation>,
}
Fields§
§position: Pos
§description: Option<String>
§name: T::Value
§arguments: Vec<InputValue<'a, T>>
§repeatable: bool
§locations: Vec<DirectiveLocation>
Implementations§
Trait Implementations§
source§impl<'a, T: Clone + Text<'a>> Clone for DirectiveDefinition<'a, T>where
T::Value: Clone,
impl<'a, T: Clone + Text<'a>> Clone for DirectiveDefinition<'a, T>where T::Value: Clone,
source§fn clone(&self) -> DirectiveDefinition<'a, T>
fn clone(&self) -> DirectiveDefinition<'a, T>
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, T> Display for DirectiveDefinition<'a, T>where
T: Text<'a>,
impl<'a, T> Display for DirectiveDefinition<'a, T>where T: Text<'a>,
source§impl<'a, T: PartialEq + Text<'a>> PartialEq<DirectiveDefinition<'a, T>> for DirectiveDefinition<'a, T>where
T::Value: PartialEq,
impl<'a, T: PartialEq + Text<'a>> PartialEq<DirectiveDefinition<'a, T>> for DirectiveDefinition<'a, T>where T::Value: PartialEq,
source§fn eq(&self, other: &DirectiveDefinition<'a, T>) -> bool
fn eq(&self, other: &DirectiveDefinition<'a, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.