pub struct PendingStreamPublication {
pub publication_id: String,
pub session_id: SessionId,
pub run_id: RunId,
pub stream_records: Vec<AgentStreamRecord>,
pub display_messages: Vec<DisplayMessage>,
pub replay_events: Vec<ReplayEvent>,
pub display_snapshot: Option<ReplaySnapshot>,
pub archive_pending: bool,
pub replay_pending: bool,
pub created_at: DateTime<Utc>,
}Expand description
One transactionally enqueued stream-publication batch.
Fields§
§publication_id: StringStable outbox identity. One sealed run evidence bundle owns one publication.
session_id: SessionIdSession that owns the evidence.
run_id: RunIdRun that owns the evidence.
stream_records: Vec<AgentStreamRecord>Raw runtime records for the archive sink.
display_messages: Vec<DisplayMessage>Projected display messages for the archive sink.
replay_events: Vec<ReplayEvent>Typed replay events for the replay-log sink.
display_snapshot: Option<ReplaySnapshot>Optional compact display snapshot for the archive sink.
archive_pending: boolWhether archive delivery still requires acknowledgement.
replay_pending: boolWhether replay-log delivery still requires acknowledgement.
created_at: DateTime<Utc>Time at which the evidence transaction enqueued this batch.
Implementations§
Source§impl PendingStreamPublication
impl PendingStreamPublication
Sourcepub fn new(
session_id: SessionId,
run_id: RunId,
targets: StreamPublicationTargets,
created_at: DateTime<Utc>,
) -> Self
pub fn new( session_id: SessionId, run_id: RunId, targets: StreamPublicationTargets, created_at: DateTime<Utc>, ) -> Self
Build a deterministic publication from one run’s sealed evidence.
Sourcepub const fn is_complete(&self) -> bool
pub const fn is_complete(&self) -> bool
Return true when every configured sink acknowledged the batch.
Trait Implementations§
Source§impl Clone for PendingStreamPublication
impl Clone for PendingStreamPublication
Source§fn clone(&self) -> PendingStreamPublication
fn clone(&self) -> PendingStreamPublication
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 PendingStreamPublication
impl Debug for PendingStreamPublication
Source§impl<'de> Deserialize<'de> for PendingStreamPublication
impl<'de> Deserialize<'de> for PendingStreamPublication
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 PendingStreamPublication
Source§impl PartialEq for PendingStreamPublication
impl PartialEq for PendingStreamPublication
Source§impl Serialize for PendingStreamPublication
impl Serialize for PendingStreamPublication
impl StructuralPartialEq for PendingStreamPublication
Source§impl VersionedRecord for PendingStreamPublication
impl VersionedRecord for PendingStreamPublication
Source§const SCHEMA: &'static str = "starweaver.session.stream_publication"
const SCHEMA: &'static str = "starweaver.session.stream_publication"
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 PendingStreamPublication
impl RefUnwindSafe for PendingStreamPublication
impl Send for PendingStreamPublication
impl Sync for PendingStreamPublication
impl Unpin for PendingStreamPublication
impl UnsafeUnpin for PendingStreamPublication
impl UnwindSafe for PendingStreamPublication
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