pub enum Kind<S: ExtendVec + 'static = Vec<u8>> {
Modify(Modify<S>),
Create(Create),
Delete(Delete),
}
Expand description
The kind of change of data.
Variants§
Modify(Modify<S>)
Modification.
You need to make a Self::Create
event before modifying the resource.
If you don’t do this, the modification MUST NOT be applied.
Create(Create)
Creation.
A new resource has been created. Before any other event can affect this resource, you’ll have to initialise it with this event.
Delete(Delete)
Deletion.
Can contain a Delete::successor
to hint on where the file has been moved to. This
enables subsequent Event
s to be redirected to the successor.
The redirections will stop when a new Self::Create
event is triggered.
Implementations§
Trait Implementations§
source§impl<'de, S> Deserialize<'de> for Kind<S>where
S: Deserialize<'de> + ExtendVec + 'static,
impl<'de, S> Deserialize<'de> for Kind<S>where
S: Deserialize<'de> + ExtendVec + 'static,
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<S: Eq + ExtendVec + 'static> Eq for Kind<S>
impl<S: ExtendVec + 'static> StructuralPartialEq for Kind<S>
Auto Trait Implementations§
impl<S> Freeze for Kind<S>
impl<S> RefUnwindSafe for Kind<S>where
S: RefUnwindSafe,
impl<S> Send for Kind<S>where
S: Send,
impl<S> Sync for Kind<S>where
S: Sync,
impl<S> Unpin for Kind<S>where
S: Unpin,
impl<S> UnwindSafe for Kind<S>where
S: UnwindSafe,
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
)