pub struct AgentEventNormalizationContext {
pub thread_id: String,
pub run_id: String,
pub origin: String,
pub correlation_id: Option<String>,
}Expand description
Scope and metadata used when normalizing runtime events that do not carry thread or run identifiers themselves.
Fields§
§thread_id: String§run_id: String§origin: String§correlation_id: Option<String>Implementations§
Source§impl AgentEventNormalizationContext
impl AgentEventNormalizationContext
Sourcepub fn new(
thread_id: impl Into<String>,
run_id: impl Into<String>,
origin: impl Into<String>,
) -> Result<AgentEventNormalizationContext, EventStoreError>
pub fn new( thread_id: impl Into<String>, run_id: impl Into<String>, origin: impl Into<String>, ) -> Result<AgentEventNormalizationContext, EventStoreError>
Create a normalization context for one thread/run pair.
Sourcepub fn with_correlation_id(
self,
correlation_id: impl Into<String>,
) -> AgentEventNormalizationContext
pub fn with_correlation_id( self, correlation_id: impl Into<String>, ) -> AgentEventNormalizationContext
Attach a correlation id used for tracing and diagnostics.
Trait Implementations§
Source§impl Clone for AgentEventNormalizationContext
impl Clone for AgentEventNormalizationContext
Source§fn clone(&self) -> AgentEventNormalizationContext
fn clone(&self) -> AgentEventNormalizationContext
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<'de> Deserialize<'de> for AgentEventNormalizationContext
impl<'de> Deserialize<'de> for AgentEventNormalizationContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentEventNormalizationContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentEventNormalizationContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentEventNormalizationContext
Source§impl PartialEq for AgentEventNormalizationContext
impl PartialEq for AgentEventNormalizationContext
Source§fn eq(&self, other: &AgentEventNormalizationContext) -> bool
fn eq(&self, other: &AgentEventNormalizationContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentEventNormalizationContext
impl Serialize for AgentEventNormalizationContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentEventNormalizationContext
Auto Trait Implementations§
impl Freeze for AgentEventNormalizationContext
impl RefUnwindSafe for AgentEventNormalizationContext
impl Send for AgentEventNormalizationContext
impl Sync for AgentEventNormalizationContext
impl Unpin for AgentEventNormalizationContext
impl UnsafeUnpin for AgentEventNormalizationContext
impl UnwindSafe for AgentEventNormalizationContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.