Struct apollo_compiler::coordinate::DirectiveCoordinate
source · pub struct DirectiveCoordinate {
pub directive: Name,
}Expand description
A schema coordinate targeting a directive definition: @directive.
Fields§
§directive: NameImplementations§
source§impl DirectiveCoordinate
impl DirectiveCoordinate
sourcepub fn with_argument(&self, argument: Name) -> DirectiveArgumentCoordinate
pub fn with_argument(&self, argument: Name) -> DirectiveArgumentCoordinate
Create a schema coordinate that points to an argument of this directive.
sourcepub fn lookup<'coord, 'schema>(
&'coord self,
schema: &'schema Schema
) -> Result<&'schema Node<DirectiveDefinition>, SchemaLookupError<'coord, 'schema>>
pub fn lookup<'coord, 'schema>( &'coord self, schema: &'schema Schema ) -> Result<&'schema Node<DirectiveDefinition>, SchemaLookupError<'coord, 'schema>>
Look up this directive in a schema.
Trait Implementations§
source§impl Clone for DirectiveCoordinate
impl Clone for DirectiveCoordinate
source§fn clone(&self) -> DirectiveCoordinate
fn clone(&self) -> DirectiveCoordinate
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 Debug for DirectiveCoordinate
impl Debug for DirectiveCoordinate
source§impl Display for DirectiveCoordinate
impl Display for DirectiveCoordinate
source§impl From<DirectiveCoordinate> for SchemaCoordinate
impl From<DirectiveCoordinate> for SchemaCoordinate
source§fn from(inner: DirectiveCoordinate) -> Self
fn from(inner: DirectiveCoordinate) -> Self
Converts to this type from the input type.
source§impl From<Name> for DirectiveCoordinate
impl From<Name> for DirectiveCoordinate
source§impl FromStr for DirectiveCoordinate
impl FromStr for DirectiveCoordinate
source§impl Hash for DirectiveCoordinate
impl Hash for DirectiveCoordinate
source§impl PartialEq for DirectiveCoordinate
impl PartialEq for DirectiveCoordinate
source§fn eq(&self, other: &DirectiveCoordinate) -> bool
fn eq(&self, other: &DirectiveCoordinate) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DirectiveCoordinate
impl StructuralEq for DirectiveCoordinate
impl StructuralPartialEq for DirectiveCoordinate
Auto Trait Implementations§
impl RefUnwindSafe for DirectiveCoordinate
impl Send for DirectiveCoordinate
impl Sync for DirectiveCoordinate
impl Unpin for DirectiveCoordinate
impl UnwindSafe for DirectiveCoordinate
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.