MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / deleted

Method deleted

atomic-core/src/record/item.rs:188–190  ·  view source on GitHub ↗

Create a Deleted update for a removed file. # Arguments `inode` - The inode of the deleted file # Example ```rust use atomic_core::record::InodeUpdate; use atomic_core::types::Inode; let update = InodeUpdate::deleted(Inode::new(5)); assert!(update.is_deleted()); ```

(inode: Inode)

Source from the content-addressed store, hash-verified

186 /// assert!(update.is_deleted());
187 /// ```
188 pub fn deleted(inode: Inode) -> Self {
189 Self::Deleted { inode }
190 }
191
192 /// Check if this is an Add update.
193 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected