Enum schema_ast::ast::AttributeContainer
source · pub enum AttributeContainer {
Model(ModelId),
ModelField(ModelId, FieldId),
Enum(EnumId),
EnumValue(EnumId, u32),
CompositeTypeField(CompositeTypeId, FieldId),
}
Expand description
A node containing attributes.
Variants§
Model(ModelId)
ModelField(ModelId, FieldId)
Enum(EnumId)
EnumValue(EnumId, u32)
CompositeTypeField(CompositeTypeId, FieldId)
Trait Implementations§
source§impl Clone for AttributeContainer
impl Clone for AttributeContainer
source§fn clone(&self) -> AttributeContainer
fn clone(&self) -> AttributeContainer
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 AttributeContainer
impl Debug for AttributeContainer
source§impl From<(CompositeTypeId, FieldId)> for AttributeContainer
impl From<(CompositeTypeId, FieldId)> for AttributeContainer
source§fn from((ct, field): (CompositeTypeId, FieldId)) -> Self
fn from((ct, field): (CompositeTypeId, FieldId)) -> Self
Converts to this type from the input type.
source§impl From<EnumId> for AttributeContainer
impl From<EnumId> for AttributeContainer
source§impl From<ModelId> for AttributeContainer
impl From<ModelId> for AttributeContainer
source§impl Hash for AttributeContainer
impl Hash for AttributeContainer
source§impl Index<AttributeContainer> for SchemaAst
impl Index<AttributeContainer> for SchemaAst
source§impl Ord for AttributeContainer
impl Ord for AttributeContainer
source§fn cmp(&self, other: &AttributeContainer) -> Ordering
fn cmp(&self, other: &AttributeContainer) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AttributeContainer
impl PartialEq for AttributeContainer
source§fn eq(&self, other: &AttributeContainer) -> bool
fn eq(&self, other: &AttributeContainer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AttributeContainer
impl PartialOrd for AttributeContainer
source§fn partial_cmp(&self, other: &AttributeContainer) -> Option<Ordering>
fn partial_cmp(&self, other: &AttributeContainer) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AttributeContainer
impl Eq for AttributeContainer
impl StructuralEq for AttributeContainer
impl StructuralPartialEq for AttributeContainer
Auto Trait Implementations§
impl RefUnwindSafe for AttributeContainer
impl Send for AttributeContainer
impl Sync for AttributeContainer
impl Unpin for AttributeContainer
impl UnwindSafe for AttributeContainer
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