pub enum SchemaCoordinate {
Type(TypeCoordinate),
Member(MemberCoordinate),
Argument(ArgumentCoordinate),
Directive(DirectiveCoordinate),
DirectiveArgument(DirectiveArgumentCoordinate),
}Expand description
A GraphQL Schema Coordinate
Variants§
Type(TypeCoordinate)
Member(MemberCoordinate)
Argument(ArgumentCoordinate)
Directive(DirectiveCoordinate)
DirectiveArgument(DirectiveArgumentCoordinate)
Implementations§
Source§impl SchemaCoordinate
impl SchemaCoordinate
pub fn ty(name: impl Into<String>) -> Self
pub fn member(ty: impl Into<String>, field: impl Into<String>) -> Self
pub fn argument( ty: impl Into<String>, field: impl Into<String>, argument: impl Into<String>, ) -> Self
pub fn directive(name: impl Into<String>) -> Self
pub fn directive_argument( name: impl Into<String>, argument: impl Into<String>, ) -> Self
pub fn as_ty(&self) -> Option<&TypeCoordinate>
pub fn is_ty(&self) -> bool
pub fn as_member(&self) -> Option<&MemberCoordinate>
pub fn is_member(&self) -> bool
pub fn as_argument(&self) -> Option<&ArgumentCoordinate>
pub fn is_argument(&self) -> bool
pub fn as_directive(&self) -> Option<&DirectiveCoordinate>
pub fn is_directive(&self) -> bool
pub fn as_directive_argument(&self) -> Option<&DirectiveArgumentCoordinate>
pub fn is_directive_argument(&self) -> bool
Trait Implementations§
Source§impl Clone for SchemaCoordinate
impl Clone for SchemaCoordinate
Source§fn clone(&self) -> SchemaCoordinate
fn clone(&self) -> SchemaCoordinate
Returns a duplicate 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 SchemaCoordinate
impl Debug for SchemaCoordinate
Source§impl Display for SchemaCoordinate
impl Display for SchemaCoordinate
Source§impl Hash for SchemaCoordinate
impl Hash for SchemaCoordinate
Source§impl Ord for SchemaCoordinate
impl Ord for SchemaCoordinate
Source§fn cmp(&self, other: &SchemaCoordinate) -> Ordering
fn cmp(&self, other: &SchemaCoordinate) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SchemaCoordinate
impl PartialEq for SchemaCoordinate
Source§impl PartialOrd for SchemaCoordinate
impl PartialOrd for SchemaCoordinate
impl Eq for SchemaCoordinate
impl StructuralPartialEq for SchemaCoordinate
Auto Trait Implementations§
impl Freeze for SchemaCoordinate
impl RefUnwindSafe for SchemaCoordinate
impl Send for SchemaCoordinate
impl Sync for SchemaCoordinate
impl Unpin for SchemaCoordinate
impl UnsafeUnpin for SchemaCoordinate
impl UnwindSafe for SchemaCoordinate
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.