pub struct DirectiveArgumentCoordinate {
pub directive: Name,
pub argument: Name,
}Expand description
A schema coordinate targeting a directive argument definition: @directive(argument:).
Fields§
§directive: Name§argument: NameImplementations§
source§impl DirectiveArgumentCoordinate
impl DirectiveArgumentCoordinate
sourcepub fn directive_coordinate(&self) -> DirectiveCoordinate
pub fn directive_coordinate(&self) -> DirectiveCoordinate
Create a schema coordinate that points to the directive this argument is defined in.
sourcepub fn lookup<'coord, 'schema>(
&'coord self,
schema: &'schema Schema
) -> Result<&'schema Node<InputValueDefinition>, SchemaLookupError<'coord, 'schema>>
pub fn lookup<'coord, 'schema>( &'coord self, schema: &'schema Schema ) -> Result<&'schema Node<InputValueDefinition>, SchemaLookupError<'coord, 'schema>>
Look up this directive argument in a schema.
Trait Implementations§
source§impl Clone for DirectiveArgumentCoordinate
impl Clone for DirectiveArgumentCoordinate
source§fn clone(&self) -> DirectiveArgumentCoordinate
fn clone(&self) -> DirectiveArgumentCoordinate
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 DirectiveArgumentCoordinate
impl Debug for DirectiveArgumentCoordinate
source§impl From<DirectiveArgumentCoordinate> for SchemaCoordinate
impl From<DirectiveArgumentCoordinate> for SchemaCoordinate
source§fn from(inner: DirectiveArgumentCoordinate) -> Self
fn from(inner: DirectiveArgumentCoordinate) -> Self
Converts to this type from the input type.
source§impl Hash for DirectiveArgumentCoordinate
impl Hash for DirectiveArgumentCoordinate
source§impl PartialEq for DirectiveArgumentCoordinate
impl PartialEq for DirectiveArgumentCoordinate
source§fn eq(&self, other: &DirectiveArgumentCoordinate) -> bool
fn eq(&self, other: &DirectiveArgumentCoordinate) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DirectiveArgumentCoordinate
impl StructuralPartialEq for DirectiveArgumentCoordinate
Auto Trait Implementations§
impl Freeze for DirectiveArgumentCoordinate
impl RefUnwindSafe for DirectiveArgumentCoordinate
impl Send for DirectiveArgumentCoordinate
impl Sync for DirectiveArgumentCoordinate
impl Unpin for DirectiveArgumentCoordinate
impl UnwindSafe for DirectiveArgumentCoordinate
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.