pub struct Relation {
pub from: Vec<TableName>,
pub to: Vec<TableName>,
pub enforced: bool,
pub lightweight: bool,
}Fields§
§from: Vec<TableName>Contains the tables the relation originates from,
if empty then there was no IN clause
to: Vec<TableName>Contains the tables the relation goes to,
if empty then there was no OUT clause
enforced: bool§lightweight: boolA lightweight relation stores each edge as its two vertex-side
adjacency keys alone — no record, no edge-side keys, no index keys.
Its edges are synthesized on read from their canonical
[in, out] ids, so the table can hold no data beyond id, in
and out, and its endpoints must always be enforced (vertex
deletion is the only cleanup path).
Implementations§
Trait Implementations§
Source§impl DeserializeRevisioned for Relation
impl DeserializeRevisioned for Relation
impl Eq for Relation
Source§impl Revisioned for Relation
impl Revisioned for Relation
Source§impl SerializeRevisioned for Relation
impl SerializeRevisioned for Relation
Source§impl SkipCheckRevisioned for Relation
impl SkipCheckRevisioned for Relation
Source§impl SkipRevisioned for Relation
impl SkipRevisioned for Relation
fn skip_revisioned<R: Read>(reader: &mut R) -> Result<(), Error>
Source§fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
Consume through bytes backed by
SliceReader without allocating a buffer for bulk segments. Read moreimpl StructuralPartialEq for Relation
Source§impl<V: MutVisitor> VisitMut<V> for Relation
impl<V: MutVisitor> VisitMut<V> for Relation
Source§impl WalkRevisioned for Relation
impl WalkRevisioned for Relation
Source§type Walker<'r, R: BorrowedReader + 'r> = RelationWalker<'r, R>
type Walker<'r, R: BorrowedReader + 'r> = RelationWalker<'r, R>
Walker produced by
walk_revisioned. Read moreSource§fn walk_revisioned<'r, R: BorrowedReader>(
reader: &'r mut R,
) -> Result<Self::Walker<'r, R>, Error>
fn walk_revisioned<'r, R: BorrowedReader>( reader: &'r mut R, ) -> Result<Self::Walker<'r, R>, Error>
Read the type’s revision-level prefix and return a walker positioned at
the start of the body. Read more
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin for Relation
impl UnwindSafe for Relation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.