Struct apollo_compiler::schema::EnumType
source · pub struct EnumType {
pub description: Option<NodeStr>,
pub directives: Directives,
pub values: IndexMap<Name, Component<EnumValueDefinition>>,
}
Fields§
§description: Option<NodeStr>
§directives: Directives
§values: IndexMap<Name, Component<EnumValueDefinition>>
Implementations§
source§impl EnumType
impl EnumType
sourcepub fn extensions(&self) -> IndexSet<&ExtensionId>
pub fn extensions(&self) -> IndexSet<&ExtensionId>
Collect enum type extensions that contribute any component
The order of the returned set is unspecified but deterministic for a given apollo-compiler version.
Trait Implementations§
source§impl From<EnumType> for ExtendedType
impl From<EnumType> for ExtendedType
source§impl PartialEq for EnumType
impl PartialEq for EnumType
impl Eq for EnumType
impl StructuralEq for EnumType
impl StructuralPartialEq for EnumType
Auto Trait Implementations§
impl RefUnwindSafe for EnumType
impl Send for EnumType
impl Sync for EnumType
impl Unpin for EnumType
impl UnwindSafe for EnumType
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.