pub struct AddGraphEdgeParams {
pub source: String,
pub target: String,
pub edge_type: GraphEdgeType,
pub weight: f64,
pub metadata: Option<Value>,
pub valid_time: Option<String>,
pub recorded_time: Option<String>,
}Expand description
Parameters for creating a graph edge.
Fields§
§source: StringSource node ID (prefixed, e.g. fact:<uuid>, namespace:<name>).
target: StringTarget node ID (prefixed).
edge_type: GraphEdgeTypeEdge type (semantic, temporal, causal, entity).
weight: f64Edge weight (interpretation depends on edge_type).
metadata: Option<Value>Optional metadata.
valid_time: Option<String>Optional domain/business time. Defaults to insertion time.
recorded_time: Option<String>Optional system recorded time. Defaults to insertion time.
Trait Implementations§
Source§impl Clone for AddGraphEdgeParams
impl Clone for AddGraphEdgeParams
Source§fn clone(&self) -> AddGraphEdgeParams
fn clone(&self) -> AddGraphEdgeParams
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 moreAuto Trait Implementations§
impl Freeze for AddGraphEdgeParams
impl RefUnwindSafe for AddGraphEdgeParams
impl Send for AddGraphEdgeParams
impl Sync for AddGraphEdgeParams
impl Unpin for AddGraphEdgeParams
impl UnsafeUnpin for AddGraphEdgeParams
impl UnwindSafe for AddGraphEdgeParams
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