Struct phile::sqir::RelationSide [] [src]

pub struct RelationSide {
    pub entity: RcType,
    pub field: Option<String>,
    pub cardinality: Cardinality,
}

Represents one side of a relationship between two entities. A particular RelationSide always describes the relation from the point of view of one particular entity type.

Fields

Pointer to the type which forms this side of the relationship.

Name of the field this side uses to refer to the other side.

Number of instances of this entity that may correspond to an instance in the other entity.

Trait Implementations

impl Debug for RelationSide
[src]

Formats the value using the given formatter.

impl Clone for RelationSide
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for RelationSide
[src]

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

This method tests for !=.

impl Eq for RelationSide
[src]

impl PartialOrd for RelationSide
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for RelationSide
[src]

This method returns an Ordering between self and other. Read more