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