pub enum SchemaFact {
Type(TypeFact),
Sub(SubFact),
Value(ValueFact),
Owns(OwnsFact),
Relates(RelatesFact),
Plays(PlaysFact),
Annotation(AnnotationFact),
Function(FunctionFact),
Struct(StructFact),
}Expand description
A validated, atomic direct schema fact.
Variants§
Type(TypeFact)
Type existence.
Sub(SubFact)
Direct subtype edge.
Value(ValueFact)
Attribute scalar domain.
Owns(OwnsFact)
Direct ownership.
Relates(RelatesFact)
Direct related role.
Plays(PlaysFact)
Direct role playing.
Annotation(AnnotationFact)
Independent annotation.
Function(FunctionFact)
Function declaration.
Struct(StructFact)
Struct declaration.
Implementations§
Source§impl SchemaFact
impl SchemaFact
Sourcepub fn id(&self) -> SchemaFactId
pub fn id(&self) -> SchemaFactId
Return the stable structural identity.
Trait Implementations§
Source§impl Clone for SchemaFact
impl Clone for SchemaFact
Source§fn clone(&self) -> SchemaFact
fn clone(&self) -> SchemaFact
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 SchemaFact
impl Debug for SchemaFact
impl Eq for SchemaFact
Source§impl PartialEq for SchemaFact
impl PartialEq for SchemaFact
Source§impl Serialize for SchemaFact
impl Serialize for SchemaFact
impl StructuralPartialEq for SchemaFact
Auto Trait Implementations§
impl Freeze for SchemaFact
impl RefUnwindSafe for SchemaFact
impl Send for SchemaFact
impl Sync for SchemaFact
impl Unpin for SchemaFact
impl UnsafeUnpin for SchemaFact
impl UnwindSafe for SchemaFact
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