pub enum EventKind {
Created {
record: Box<Record>,
},
Amended {
changes: Vec<Change>,
},
Corrected {
changes: Vec<Change>,
corrects: Option<EventId>,
},
RelationAdded {
relation: Relation,
},
RelationRetracted {
relation_id: RelationId,
},
Retracted,
Superseded {
by: RecordId,
},
Redacted {
fields: Vec<FieldPath>,
},
Annotated {
name: NamespacedName,
data: BTreeMap<String, ExtValue>,
},
}Variants§
Created
The record’s initial state.
Amended
Ordinary edits.
Corrected
Edits that fix an error. A reason is required; the event being corrected may be named.
RelationAdded
RelationRetracted
Fields
§
relation_id: RelationIdRetracted
The record was withdrawn. Reason required.
Superseded
The record was replaced by another record.
Redacted
Values at the given paths were removed from the record and its history.
Annotated
An application-defined annotation that does not change the envelope (for example a moderation note). Data is typed.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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 StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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