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
Create a new directed, typed edge. id is minted at stage time; source
and target may resolve to another op’s stage-time id in the same or a
different change-set.
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