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 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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EffectiveRelates
impl Debug for EffectiveRelates
impl Eq for EffectiveRelates
Source§impl PartialEq for EffectiveRelates
impl PartialEq for EffectiveRelates
impl StructuralPartialEq for EffectiveRelates
Auto Trait Implementations§
impl Freeze for EffectiveRelates
impl RefUnwindSafe for EffectiveRelates
impl Send for EffectiveRelates
impl Sync for EffectiveRelates
impl Unpin for EffectiveRelates
impl UnsafeUnpin for EffectiveRelates
impl UnwindSafe for EffectiveRelates
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more