agde::event

Struct Delete

source
pub struct Delete { /* private fields */ }
Expand description

Deletion of a resource.

The resource must be initialised using Create.

Implementations§

source§

impl Delete

source

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.

source

pub fn resource(&self) -> &str

Returns a reference to the target resource name.