Struct apollo_compiler::schema::ScalarType
source · pub struct ScalarType {
pub description: Option<NodeStr>,
pub directives: Directives,
}
Fields§
§description: Option<NodeStr>
§directives: Directives
Implementations§
source§impl ScalarType
impl ScalarType
sourcepub fn extensions(&self) -> IndexSet<&ExtensionId>
pub fn extensions(&self) -> IndexSet<&ExtensionId>
Collect scalar 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 ScalarType
impl Clone for ScalarType
source§fn clone(&self) -> ScalarType
fn clone(&self) -> ScalarType
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 ScalarType
impl Debug for ScalarType
source§impl From<ScalarType> for ExtendedType
impl From<ScalarType> for ExtendedType
source§fn from(ty: ScalarType) -> Self
fn from(ty: ScalarType) -> Self
Converts to this type from the input type.
source§impl Hash for ScalarType
impl Hash for ScalarType
source§impl PartialEq for ScalarType
impl PartialEq for ScalarType
source§fn eq(&self, other: &ScalarType) -> bool
fn eq(&self, other: &ScalarType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScalarType
impl StructuralEq for ScalarType
impl StructuralPartialEq for ScalarType
Auto Trait Implementations§
impl RefUnwindSafe for ScalarType
impl Send for ScalarType
impl Sync for ScalarType
impl Unpin for ScalarType
impl UnwindSafe for ScalarType
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.