pub type Event = MarshallableEvt<'static>;Expand description
an event emitted by the hydrant event stream.
three variants are possible depending on the type field:
"record": a repo record was created, updated, or deleted. carries a [RecordEvt]."identity": a DID’s handle or PDS changed. carries an [IdentityEvt]. ephemeral, not replayable."account": a repo’s active/inactive status changed. carries an [AccountEvt]. ephemeral, not replayable.
the id field is a monotonically increasing sequence number usable as a cursor for Hydrant::subscribe.
Aliased Type§
pub struct Event {
pub id: u64,
pub kind: EventType,
pub record: Option<RecordEvt<'static>>,
pub identity: Option<IdentityEvt<'static>>,
pub account: Option<AccountEvt<'static>>,
}Fields§
§id: u64§kind: EventType§record: Option<RecordEvt<'static>>§identity: Option<IdentityEvt<'static>>§account: Option<AccountEvt<'static>>