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
MoveEventwas 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
impl Eq for Delete
impl StructuralPartialEq for Delete
Auto Trait Implementations§
impl Freeze for Delete
impl RefUnwindSafe for Delete
impl Send for Delete
impl Sync for Delete
impl Unpin for Delete
impl UnwindSafe for Delete
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)