#[non_exhaustive]pub enum TypeAttributeLookup<'schema> {
Field(&'schema Component<FieldDefinition>),
InputField(&'schema Component<InputValueDefinition>),
EnumValue(&'schema Component<EnumValueDefinition>),
}
Expand description
Possible types selected by a type attribute coordinate, of the form Type.field
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Field(&'schema Component<FieldDefinition>)
InputField(&'schema Component<InputValueDefinition>)
EnumValue(&'schema Component<EnumValueDefinition>)
Trait Implementations§
source§impl<'schema> Clone for TypeAttributeLookup<'schema>
impl<'schema> Clone for TypeAttributeLookup<'schema>
source§fn clone(&self) -> TypeAttributeLookup<'schema>
fn clone(&self) -> TypeAttributeLookup<'schema>
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<'schema> Debug for TypeAttributeLookup<'schema>
impl<'schema> Debug for TypeAttributeLookup<'schema>
source§impl<'schema> From<TypeAttributeLookup<'schema>> for SchemaCoordinateLookup<'schema>
impl<'schema> From<TypeAttributeLookup<'schema>> for SchemaCoordinateLookup<'schema>
source§fn from(attr: TypeAttributeLookup<'schema>) -> Self
fn from(attr: TypeAttributeLookup<'schema>) -> Self
Converts to this type from the input type.
source§impl<'schema> PartialEq for TypeAttributeLookup<'schema>
impl<'schema> PartialEq for TypeAttributeLookup<'schema>
source§fn eq(&self, other: &TypeAttributeLookup<'schema>) -> bool
fn eq(&self, other: &TypeAttributeLookup<'schema>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'schema> Eq for TypeAttributeLookup<'schema>
impl<'schema> StructuralPartialEq for TypeAttributeLookup<'schema>
Auto Trait Implementations§
impl<'schema> Freeze for TypeAttributeLookup<'schema>
impl<'schema> RefUnwindSafe for TypeAttributeLookup<'schema>
impl<'schema> Send for TypeAttributeLookup<'schema>
impl<'schema> Sync for TypeAttributeLookup<'schema>
impl<'schema> Unpin for TypeAttributeLookup<'schema>
impl<'schema> UnwindSafe for TypeAttributeLookup<'schema>
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.