pub struct Delete { /* private fields */ }
Expand description
Deletion of a resource.
The resource must be initialised using Create
.
Implementations§
source§impl Delete
impl Delete
sourcepub fn new(resource: String, successor: Option<String>) -> Self
pub fn new(resource: String, successor: Option<String>) -> Self
Creates a new delete event.
The successor, if present, directs all more recent modifications of the deleted resource
(Self::resource
) to another resource.
This is useful for when a file is renamed.
Having a
MoveEvent
was experimented with, but ultimately failed. Dig into the old git commits to see comments about it.