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 Forget for LinkOp
impl Freeze for LinkOpwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, PropertyValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PropertyValue)>>: Freeze,
impl Move for LinkOp
impl RefUnwindSafe for LinkOp
impl Send for LinkOpwhere
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
impl Sync for LinkOpwhere
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
impl Unpin for LinkOp
impl UnsafeUnpin for LinkOpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, PropertyValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PropertyValue)>>: UnsafeUnpin,
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