pub struct DurableHostEventRecord {
pub position: u64,
pub publication_key: EventPublicationKey,
pub event_id: String,
pub scope: DurableHostEventScope,
pub event_class: DurableHostEventClass,
pub projection: Value,
pub occurred_at: DateTime<Utc>,
}Expand description
One materialized durable host-event record.
Fields§
§position: u64Storage-domain monotonic position. This is never exposed directly on the public wire.
publication_key: EventPublicationKeyDeterministic logical-publication identity.
event_id: StringStable public event identity.
scope: DurableHostEventScopeResource scope owned by this event.
event_class: DurableHostEventClassStable event class.
projection: ValueProduct-neutral object projection.
occurred_at: DateTime<Utc>Time at which the authoritative transition occurred.
Implementations§
Source§impl DurableHostEventRecord
impl DurableHostEventRecord
Sourcepub fn from_pending(position: u64, pending: PendingHostEventPublication) -> Self
pub fn from_pending(position: u64, pending: PendingHostEventPublication) -> Self
Materialize one pending publication at a storage-assigned position.
Sourcepub fn pending_projection(&self) -> PendingHostEventPublication
pub fn pending_projection(&self) -> PendingHostEventPublication
Return the pending form used for exact-retry comparison.
Trait Implementations§
Source§impl Clone for DurableHostEventRecord
impl Clone for DurableHostEventRecord
Source§fn clone(&self) -> DurableHostEventRecord
fn clone(&self) -> DurableHostEventRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DurableHostEventRecord
impl Debug for DurableHostEventRecord
Source§impl<'de> Deserialize<'de> for DurableHostEventRecord
impl<'de> Deserialize<'de> for DurableHostEventRecord
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 Eq for DurableHostEventRecord
Source§impl PartialEq for DurableHostEventRecord
impl PartialEq for DurableHostEventRecord
Source§impl Serialize for DurableHostEventRecord
impl Serialize for DurableHostEventRecord
impl StructuralPartialEq for DurableHostEventRecord
Source§impl VersionedRecord for DurableHostEventRecord
impl VersionedRecord for DurableHostEventRecord
Source§const SCHEMA: &'static str = "starweaver.session.durable_host_event"
const SCHEMA: &'static str = "starweaver.session.durable_host_event"
Stable schema identifier.
Source§const ALLOW_BARE_V0: bool = false
const ALLOW_BARE_V0: bool = false
Whether this record explicitly accepts a previous bare-JSON v0 shape.
Source§fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode one enveloped payload version. Read more
Source§fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode the explicitly supported bare-JSON v0 shape. Read more
Auto Trait Implementations§
impl Freeze for DurableHostEventRecord
impl RefUnwindSafe for DurableHostEventRecord
impl Send for DurableHostEventRecord
impl Sync for DurableHostEventRecord
impl Unpin for DurableHostEventRecord
impl UnsafeUnpin for DurableHostEventRecord
impl UnwindSafe for DurableHostEventRecord
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