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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Delete
impl<'de> Deserialize<'de> for Delete
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