pub struct EdgeAssertion {
pub source: String,
pub target: String,
pub edge_type: String,
pub valid_from: String,
pub valid_to: String,
pub weight: f64,
pub properties: String,
}Expand description
Edge assertion builder for assert / retire / re-assert lifecycle operations.
Fields§
§source: String§target: String§edge_type: String§valid_from: String§valid_to: String§weight: f64§properties: StringImplementations§
Source§impl EdgeAssertion
impl EdgeAssertion
pub fn new( source: impl Into<String>, target: impl Into<String>, edge_type: impl Into<String>, ) -> Self
Sourcepub fn valid_from(self, ts: impl Into<String>) -> Self
pub fn valid_from(self, ts: impl Into<String>) -> Self
When the asserted fact starts being true (valid time, Doctrine II).
Sourcepub fn valid_to(self, ts: impl Into<String>) -> Self
pub fn valid_to(self, ts: impl Into<String>) -> Self
When the asserted fact stops being true. Defaults to the open sentinel.
pub fn weight(self, weight: f64) -> Self
pub fn properties(self, json: impl Into<String>) -> Self
Sourcepub fn normalized(self) -> Result<Self>
pub fn normalized(self) -> Result<Self>
Check the assertion and put its timestamps in canonical form (D-029).
Runs before the write reaches the actor, so a malformed edge type or a
second-precision timestamp comes back as a typed error rather than as an
engine CHECK failure from the other side of a channel — by which point
the caller has lost the context that would explain it.
Trait Implementations§
Source§impl Clone for EdgeAssertion
impl Clone for EdgeAssertion
Source§fn clone(&self) -> EdgeAssertion
fn clone(&self) -> EdgeAssertion
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 EdgeAssertion
impl Debug for EdgeAssertion
Source§impl PartialEq for EdgeAssertion
impl PartialEq for EdgeAssertion
impl StructuralPartialEq for EdgeAssertion
Auto Trait Implementations§
impl Freeze for EdgeAssertion
impl RefUnwindSafe for EdgeAssertion
impl Send for EdgeAssertion
impl Sync for EdgeAssertion
impl Unpin for EdgeAssertion
impl UnsafeUnpin for EdgeAssertion
impl UnwindSafe for EdgeAssertion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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