pub struct PropertyDelta {
pub key: String,
pub operation: PropertyOp,
}Expand description
A property delta for nodes
Fields§
§key: StringProperty key
operation: PropertyOpOperation
Implementations§
Source§impl PropertyDelta
impl PropertyDelta
Sourcepub fn set(key: impl Into<String>, value: PropertyValue) -> Self
pub fn set(key: impl Into<String>, value: PropertyValue) -> Self
Create a set operation
Sourcepub fn vector_delta(key: impl Into<String>, delta: VectorDelta) -> Self
pub fn vector_delta(key: impl Into<String>, delta: VectorDelta) -> Self
Create a vector delta operation
Trait Implementations§
Source§impl Clone for PropertyDelta
impl Clone for PropertyDelta
Auto Trait Implementations§
impl Forget for PropertyDelta
impl Freeze for PropertyDelta
impl Move for PropertyDelta
impl RefUnwindSafe for PropertyDelta
impl Send for PropertyDelta
impl Sync for PropertyDelta
impl Unpin for PropertyDelta
impl UnsafeUnpin for PropertyDelta
impl UnwindSafe for PropertyDelta
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