pub struct EffectiveRelates { /* private fields */ }Expand description
Effective related role, including specialization replacement history.
Implementations§
Source§impl EffectiveRelates
impl EffectiveRelates
Sourcepub const fn id(&self) -> &EffectiveRelatesId
pub const fn id(&self) -> &EffectiveRelatesId
Return the effective related-role identity.
Sourcepub const fn origin(&self) -> &ResolutionOrigin
pub const fn origin(&self) -> &ResolutionOrigin
Return its direct declaration origin.
Sourcepub const fn collection_mode(&self) -> CollectionMode
pub const fn collection_mode(&self) -> CollectionMode
Return the effective collection semantics.
Sourcepub fn is_distinct(&self) -> bool
pub fn is_distinct(&self) -> bool
Report whether players must be distinct within the ordered collection.
Sourcepub const fn annotations(
&self,
) -> &BTreeMap<AnnotationKindId, SchemaAnnotationValue>
pub const fn annotations( &self, ) -> &BTreeMap<AnnotationKindId, SchemaAnnotationValue>
Return independent annotations on the exact relates fact.
Sourcepub const fn cardinality(&self) -> Cardinality
pub const fn cardinality(&self) -> Cardinality
Return explicit or profile-materialized cardinality.
Sourcepub const fn replaced_roles(&self) -> &BTreeSet<RoleId>
pub const fn replaced_roles(&self) -> &BTreeSet<RoleId>
Return every inherited role interface replaced by specialization.
Sourcepub const fn is_abstract(&self) -> bool
pub const fn is_abstract(&self) -> bool
Report whether this role cannot be instantiated directly.
Sourcepub fn accepts_players_at_effective_scope(&self) -> bool
pub fn accepts_players_at_effective_scope(&self) -> bool
Report whether players may fill this role at the effective relation scope.
TypeDB forbids players only at the relation that directly declares an abstract role. A concrete child relation may use the same role when it is inherited without specialization, while the role remains schema-abstract.
Trait Implementations§
Source§impl Clone for EffectiveRelates
impl Clone for EffectiveRelates
Source§fn clone(&self) -> EffectiveRelates
fn clone(&self) -> EffectiveRelates
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more