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: String

Name 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.