pub struct ExistingEdge {
pub subject_key: String,
pub relation: String,
pub object_key: String,
pub valid_from: DateTime<FixedOffset>,
pub valid_to: Option<DateTime<FixedOffset>>,
}Expand description
An edge already in the graph, as the resolver sees it for conflict checks.
Self-describing: the tuple (subject_key, relation, object_key, valid_from)
is the edge’s identity within a scope — the same tuple the commit path
MERGEs on — so a resolver’s close decision carries everything needed to
find the edge again, with no backend-internal id. valid_to is None while
the edge is current and Some(t) once it was superseded at t. Only
current edges take part in conflict resolution; closed edges are history.
Fields§
§subject_key: StringResolved key of the subject node.
relation: StringThe relation label.
object_key: StringResolved key of the object node.
valid_from: DateTime<FixedOffset>When the fact became true — part of the edge’s identity.
valid_to: Option<DateTime<FixedOffset>>None while the edge is current; Some(t) once superseded at t.
Trait Implementations§
Source§impl Clone for ExistingEdge
impl Clone for ExistingEdge
Source§fn clone(&self) -> ExistingEdge
fn clone(&self) -> ExistingEdge
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 ExistingEdge
impl Debug for ExistingEdge
Source§impl PartialEq for ExistingEdge
impl PartialEq for ExistingEdge
Source§fn eq(&self, other: &ExistingEdge) -> bool
fn eq(&self, other: &ExistingEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExistingEdge
Auto Trait Implementations§
impl Freeze for ExistingEdge
impl RefUnwindSafe for ExistingEdge
impl Send for ExistingEdge
impl Sync for ExistingEdge
impl Unpin for ExistingEdge
impl UnsafeUnpin for ExistingEdge
impl UnwindSafe for ExistingEdge
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request