Struct apollo_compiler::schema::ObjectType
source · pub struct ObjectType {
pub description: Option<NodeStr>,
pub implements_interfaces: IndexSet<ComponentStr>,
pub directives: Directives,
pub fields: IndexMap<Name, Component<FieldDefinition>>,
}
Fields§
§description: Option<NodeStr>
§implements_interfaces: IndexSet<ComponentStr>
§directives: Directives
§fields: IndexMap<Name, Component<FieldDefinition>>
Explicit field definitions.
When looking up a definition,
consider using Schema::type_field
instead to include meta-fields.
Implementations§
source§impl ObjectType
impl ObjectType
sourcepub fn extensions(&self) -> IndexSet<&ExtensionId>
pub fn extensions(&self) -> IndexSet<&ExtensionId>
Collect object 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 Clone for ObjectType
impl Clone for ObjectType
source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
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 ObjectType
impl Debug for ObjectType
source§impl From<ObjectType> for ExtendedType
impl From<ObjectType> for ExtendedType
source§fn from(ty: ObjectType) -> Self
fn from(ty: ObjectType) -> Self
Converts to this type from the input type.
source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
source§fn eq(&self, other: &ObjectType) -> bool
fn eq(&self, other: &ObjectType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ObjectType
impl StructuralEq for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
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.