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§
§key: String§run_id: String§sequence: u64§event_id: Uuid§timestamp: DateTime<Utc>§workflow: Option<FlowWorkflowIdentity>§status: Option<String>§subject: Option<A3sFlowEventSubject>Implementations§
Source§impl A3sFlowEvent
impl A3sFlowEvent
pub fn from_envelope( envelope: &FlowEventEnvelope, workflow: Option<FlowWorkflowIdentity>, ) -> Self
pub fn safe_metric_labels(&self) -> BTreeMap<String, String>
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§fn eq(&self, other: &A3sFlowEvent) -> bool
fn eq(&self, other: &A3sFlowEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.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