pub struct DeleteNode {
pub path: String,
pub node_id: NodeId,
pub old_node_kind: NodeKind,
pub preimage: DeleteNodePreimage,
}Expand description
Delete a node (FDD-03 §9.3; the wire tag is retained as delete_file). The
preimage is discriminated by old_node_kind: text/binary file nodes carry
old_blob_id + old_mode; symlink nodes carry old_target.
Fields§
§path: StringRepo-relative UTF-8 path (repo_path).
node_id: NodeIdNode identity (bytes, 32).
old_node_kind: NodeKindPrevious node kind (enum_u16); must agree with the preimage.
preimage: DeleteNodePreimageDiscriminated deletion preimage.
Implementations§
Trait Implementations§
Source§impl CanonicalEncode for DeleteNode
impl CanonicalEncode for DeleteNode
Source§fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
Encode this value into canonical bytes.
Source§impl Clone for DeleteNode
impl Clone for DeleteNode
Source§fn clone(&self) -> DeleteNode
fn clone(&self) -> DeleteNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeleteNode
impl Debug for DeleteNode
impl Eq for DeleteNode
Source§impl PartialEq for DeleteNode
impl PartialEq for DeleteNode
Source§fn eq(&self, other: &DeleteNode) -> bool
fn eq(&self, other: &DeleteNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteNode
Auto Trait Implementations§
impl Freeze for DeleteNode
impl RefUnwindSafe for DeleteNode
impl Send for DeleteNode
impl Sync for DeleteNode
impl Unpin for DeleteNode
impl UnsafeUnpin for DeleteNode
impl UnwindSafe for DeleteNode
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