pub struct LinkOp {
pub id: Id128,
pub namespace: Namespace,
pub source: Id128,
pub target: Id128,
pub relation: EdgeRelation,
pub weight: f64,
pub properties: BTreeMap<String, PropertyValue>,
}Expand description
Creates a directed edge whose ID is minted at stage time.
Endpoints may reference stage-time IDs from this or another change-set.
weight must be finite and in [0.0, 1.0] when deserialized.
See crates/khive-changeset/docs/api/create-and-link.md for field semantics.
Fields§
§id: Id128§namespace: Namespace§source: Id128§target: Id128§relation: EdgeRelation§weight: f64§properties: BTreeMap<String, PropertyValue>Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinkOp
impl<'de> Deserialize<'de> for LinkOp
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for LinkOp
Auto Trait Implementations§
impl Freeze for LinkOp
impl RefUnwindSafe for LinkOp
impl Send for LinkOp
impl Sync for LinkOp
impl Unpin for LinkOp
impl UnsafeUnpin for LinkOp
impl UnwindSafe for LinkOp
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