pub struct CIEvent {
pub seq: u64,
pub timestamp: DateTime<Utc>,
pub kind: CIEventKind,
pub metadata: Value,
}Expand description
A single CI lifecycle event in a run’s execution trace.
Fields§
§seq: u64Monotonically increasing sequence number within the run.
timestamp: DateTime<Utc>When the event occurred.
kind: CIEventKindEvent classification and payload.
metadata: ValueOptional additional metadata.
Implementations§
Source§impl CIEvent
impl CIEvent
Sourcepub fn new(seq: u64, kind: CIEventKind) -> Self
pub fn new(seq: u64, kind: CIEventKind) -> Self
Create a new CI event.
Sourcepub fn with_metadata(self, metadata: Value) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
Attach metadata to the event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CIEvent
impl<'de> Deserialize<'de> for CIEvent
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 StructuralPartialEq for CIEvent
Auto Trait Implementations§
impl Freeze for CIEvent
impl RefUnwindSafe for CIEvent
impl Send for CIEvent
impl Sync for CIEvent
impl Unpin for CIEvent
impl UnsafeUnpin for CIEvent
impl UnwindSafe for CIEvent
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more