agde::event

Enum Kind

source
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 subsequ