Struct espr::ast::Entity [−][src]
pub struct Entity {
pub name: String,
pub attributes: Vec<EntityAttribute>,
pub constraint: Option<Constraint>,
pub subtype_of: Option<SubTypeDecl>,
pub derive_clause: Option<DeriveClause>,
pub inverse_clause: Option<InverseClause>,
pub unique_clause: Option<UniqueClause>,
pub where_clause: Option<WhereClause>,
}Expand description
Parsed result of EXPRESS’s ENTITY
Fields
name: StringName of this entity type
attributes: Vec<EntityAttribute>attribute name and types
Be sure that this “type” is a string, not validated type in this timing
constraint: Option<Constraint>subtype_of: Option<SubTypeDecl>derive_clause: Option<DeriveClause>inverse_clause: Option<InverseClause>unique_clause: Option<UniqueClause>where_clause: Option<WhereClause>Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Entity
impl UnwindSafe for Entity
Blanket Implementations
Mutably borrows from an owned value. Read more