Struct espr::ir::Entity  [−][src]
pub struct Entity {
    pub name: String,
    pub attributes: Vec<EntityAttribute>,
    pub constraints: Vec<TypeRef>,
    pub supertypes: Vec<TypeRef>,
}Fields
name: StringName of entity in snake_case
attributes: Vec<EntityAttribute>constraints: Vec<TypeRef>List of constraints corresponding to SUBTYPE_CONSTRAINTS
and SUPERTYPE OF declaration in EXPRESS schema
supertypes: Vec<TypeRef>List of types to be inherited by this entity
When this entity is sub defined like:
ENTITY sub SUBTYPE OF (base);
END_ENTITY;then this supertypes is [base].
Trait Implementations
fn legalize(
    ns: &Namespace<'_>, 
    ss: &Constraints, 
    scope: &Scope, 
    entity: &Entity
) -> Result<Self, SemanticError>
Auto Trait Implementations
impl RefUnwindSafe for Entity
impl UnwindSafe for Entity
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more