#[non_exhaustive]pub struct A3sFlowEvent {
pub key: String,
pub run_id: String,
pub sequence: u64,
pub event_id: Uuid,
pub timestamp: DateTime<Utc>,
pub workflow: Option<FlowWorkflowIdentity>,
pub status: Option<String>,
pub subject: Option<A3sFlowEventSubject>,
}Expand description
A3S-style event record derived from a committed FlowEventEnvelope.
The event keeps full routing/audit identity such as run_id and
event_id, but safe_metric_labels intentionally
returns only low-cardinality labels.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringDot-separated A3S event routing key.
run_id: StringRun whose history owns the event.
sequence: u64Per-run event sequence number.
event_id: UuidGlobally unique event identity.
timestamp: DateTime<Utc>UTC time at which the event committed.
workflow: Option<FlowWorkflowIdentity>Workflow identity learned from the run-created event.
status: Option<String>Low-cardinality lifecycle status associated with the event.
subject: Option<A3sFlowEventSubject>Step, wait, hook, signal, progress, or child touched by the event.
Implementations§
Source§impl A3sFlowEvent
impl A3sFlowEvent
Sourcepub fn from_envelope(
envelope: &FlowEventEnvelope,
workflow: Option<FlowWorkflowIdentity>,
) -> Self
pub fn from_envelope( envelope: &FlowEventEnvelope, workflow: Option<FlowWorkflowIdentity>, ) -> Self
Maps a committed Flow envelope to an A3S-style event record.
Sourcepub fn safe_metric_labels(&self) -> BTreeMap<String, String>
pub fn safe_metric_labels(&self) -> BTreeMap<String, String>
Returns the bounded labels safe for metric dimensions.
Trait Implementations§
Source§impl Clone for A3sFlowEvent
impl Clone for A3sFlowEvent
Source§fn clone(&self) -> A3sFlowEvent
fn clone(&self) -> A3sFlowEvent
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 A3sFlowEvent
impl Debug for A3sFlowEvent
Source§impl<'de> Deserialize<'de> for A3sFlowEvent
impl<'de> Deserialize<'de> for A3sFlowEvent
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
Source§impl PartialEq for A3sFlowEvent
impl PartialEq for A3sFlowEvent
Source§impl Serialize for A3sFlowEvent
impl Serialize for A3sFlowEvent
impl StructuralPartialEq for A3sFlowEvent
Auto Trait Implementations§
impl Freeze for A3sFlowEvent
impl RefUnwindSafe for A3sFlowEvent
impl Send for A3sFlowEvent
impl Sync for A3sFlowEvent
impl Unpin for A3sFlowEvent
impl UnsafeUnpin for A3sFlowEvent
impl UnwindSafe for A3sFlowEvent
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