pub struct DeleteOp {
pub target_id: Id128,
pub hard: bool,
pub preimage: DeletePreimage,
}Expand description
Remove an existing entity, note, or edge. preimage captures the full
prior record state at stage time — required, not optional, so a delete
op without a captured preimage is unrepresentable. target_id is
validated against the embedded preimage’s own record id at deserialize
time; a mismatched pair is a parse error, not a silently-accepted op.
Fields§
§target_id: Id128§hard: bool§preimage: DeletePreimageTrait Implementations§
Source§impl<'de> Deserialize<'de> for DeleteOp
impl<'de> Deserialize<'de> for DeleteOp
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
Auto Trait Implementations§
impl Freeze for DeleteOp
impl RefUnwindSafe for DeleteOp
impl Send for DeleteOp
impl Sync for DeleteOp
impl Unpin for DeleteOp
impl UnsafeUnpin for DeleteOp
impl UnwindSafe for DeleteOp
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