pub struct Event {
pub id: EventId,
pub record_id: RecordId,
pub sequence: u64,
pub kind: EventKind,
pub attribution: Attribution,
pub occurred_at: Timestamp,
pub recorded_at: Timestamp,
pub idempotency_key: Option<String>,
pub reason: Option<String>,
pub tag: Option<NamespacedName>,
pub visibility: Visibility,
}Fields§
§id: EventId§record_id: RecordId§sequence: u64Position in the record’s history, starting at 1, without gaps.
kind: EventKind§attribution: AttributionWho caused the event.
occurred_at: TimestampWhen the change happened according to the actor (may be earlier than
recorded_at, never later than it plus allowed clock skew).
recorded_at: TimestampWhen this system recorded the event. Set by the repository.
idempotency_key: Option<String>§reason: Option<String>§tag: Option<NamespacedName>Application-defined label, e.g. app:status_change.
visibility: VisibilityWho may see this event (e.g. private moderation notes).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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