pub struct MetaType {
pub description: Option<String>,
pub name: Name,
pub kind: TypeKind,
pub owner: Option<String>,
pub keys: HashMap<String, Vec<KeyFields>>,
pub implements: IndexSet<Name>,
pub fields: IndexMap<Name, MetaField>,
pub possible_types: IndexSet<Name>,
pub enum_values: IndexMap<Name, MetaEnumValue>,
pub input_fields: IndexMap<Name, MetaInputValue>,
}
Fields§
§description: Option<String>
§name: Name
§kind: TypeKind
§owner: Option<String>
§keys: HashMap<String, Vec<KeyFields>>
§implements: IndexSet<Name>
§fields: IndexMap<Name, MetaField>
§possible_types: IndexSet<Name>
§enum_values: IndexMap<Name, MetaEnumValue>
§input_fields: IndexMap<Name, MetaInputValue>
Implementations§
Source§impl MetaType
impl MetaType
pub fn field_by_name(&self, name: &str) -> Option<&MetaField>
pub fn is_composite(&self) -> bool
pub fn is_abstract(&self) -> bool
pub fn is_leaf(&self) -> bool
pub fn is_input(&self) -> bool
pub fn is_possible_type(&self, type_name: &str) -> bool
pub fn type_overlap(&self, ty: &MetaType) -> bool
Trait Implementations§
impl Eq for MetaType
impl StructuralPartialEq for MetaType
Auto Trait Implementations§
impl Freeze for MetaType
impl RefUnwindSafe for MetaType
impl Send for MetaType
impl Sync for MetaType
impl Unpin for MetaType
impl UnwindSafe for MetaType
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.