pub struct NodeDelta {
pub property_deltas: Vec<PropertyDelta>,
pub label_adds: Vec<String>,
pub label_removes: Vec<String>,
}Expand description
Delta for a node
Fields§
§property_deltas: Vec<PropertyDelta>Property deltas
label_adds: Vec<String>Label changes (add/remove)
label_removes: Vec<String>Labels to remove
Implementations§
Source§impl NodeDelta
impl NodeDelta
Sourcepub fn set_property(self, key: impl Into<String>, value: PropertyValue) -> Self
pub fn set_property(self, key: impl Into<String>, value: PropertyValue) -> Self
Add a property set
Sourcepub fn remove_property(self, key: impl Into<String>) -> Self
pub fn remove_property(self, key: impl Into<String>) -> Self
Add a property removal
Sourcepub fn vector_delta(self, key: impl Into<String>, delta: VectorDelta) -> Self
pub fn vector_delta(self, key: impl Into<String>, delta: VectorDelta) -> Self
Add a vector delta for an embedding property
Sourcepub fn remove_label(self, label: impl Into<String>) -> Self
pub fn remove_label(self, label: impl Into<String>) -> Self
Remove a label
Trait Implementations§
Auto Trait Implementations§
impl Forget for NodeDelta
impl Freeze for NodeDelta
impl Move for NodeDelta
impl RefUnwindSafe for NodeDelta
impl Send for NodeDelta
impl Sync for NodeDelta
impl Unpin for NodeDelta
impl UnsafeUnpin for NodeDelta
impl UnwindSafe for NodeDelta
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