pub struct EdgePatch {
pub relation: Option<EdgeRelation>,
pub weight: Option<f64>,
}Expand description
weight, when present, must be finite and in [0.0, 1.0] — the same
invariant LinkOp/khive_types::Link enforce, so a staged edge update
can never target a weight the live graph would itself reject.
Fields§
§relation: Option<EdgeRelation>§weight: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgePatch
impl<'de> Deserialize<'de> for EdgePatch
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 EdgePatch
Auto Trait Implementations§
impl Freeze for EdgePatch
impl RefUnwindSafe for EdgePatch
impl Send for EdgePatch
impl Sync for EdgePatch
impl Unpin for EdgePatch
impl UnsafeUnpin for EdgePatch
impl UnwindSafe for EdgePatch
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