pub struct IntegrationEvent { /* private fields */ }Expand description
Redaction-safe lifecycle event emitted by an integration adapter.
Implementations§
Source§impl IntegrationEvent
impl IntegrationEvent
Sourcepub fn new(
adapter: &'static str,
operation: &'static str,
status: IntegrationStatus,
duration: Duration,
) -> Self
pub fn new( adapter: &'static str, operation: &'static str, status: IntegrationStatus, duration: Duration, ) -> Self
Creates a lifecycle event using stable adapter and operation names.
Sourcepub fn correlation_id(self, correlation_id: impl Into<String>) -> Result<Self>
pub fn correlation_id(self, correlation_id: impl Into<String>) -> Result<Self>
Adds a bounded correlation identifier when it is valid.
Sourcepub const fn status(&self) -> IntegrationStatus
pub const fn status(&self) -> IntegrationStatus
Returns the operation outcome.
Sourcepub fn correlation_id_value(&self) -> Option<&str>
pub fn correlation_id_value(&self) -> Option<&str>
Returns the correlation identifier, when present.
Trait Implementations§
Source§impl Clone for IntegrationEvent
impl Clone for IntegrationEvent
Source§fn clone(&self) -> IntegrationEvent
fn clone(&self) -> IntegrationEvent
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 IntegrationEvent
impl Debug for IntegrationEvent
impl Eq for IntegrationEvent
Source§impl PartialEq for IntegrationEvent
impl PartialEq for IntegrationEvent
impl StructuralPartialEq for IntegrationEvent
Auto Trait Implementations§
impl Freeze for IntegrationEvent
impl RefUnwindSafe for IntegrationEvent
impl Send for IntegrationEvent
impl Sync for IntegrationEvent
impl Unpin for IntegrationEvent
impl UnsafeUnpin for IntegrationEvent
impl UnwindSafe for IntegrationEvent
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