#[non_exhaustive]pub struct TaskEvent {
pub id: i64,
pub task_id: String,
pub timestamp: SystemTime,
pub event_type: String,
pub message: String,
pub error_message: Option<String>,
pub output: Option<String>,
pub worker_id: Option<String>,
pub task_display_name: Option<String>,
pub retry_count: Option<i64>,
pub attempt: Option<i64>,
pub other: JsonObject,
}Expand description
One event in a task run’s history (V1TaskEvent).
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.id: i64The event’s id.
task_id: StringThe task run it is about.
timestamp: SystemTimeWhen it happened.
event_type: StringWhat happened, as the spec’s V1TaskEventType spells it
("STARTED", "FINISHED", "FAILED", …). The set grows between
engine versions, so it is kept as text.
message: StringThe engine’s message.
error_message: Option<String>The error, for a failure.
output: Option<String>The output, as text.
worker_id: Option<String>The worker, when one was involved.
task_display_name: Option<String>The task’s display name.
retry_count: Option<i64>The retry it belongs to.
attempt: Option<i64>The attempt it belongs to.
other: JsonObjectFields this crate does not model, as the engine sent them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskEvent
impl<'de> Deserialize<'de> for TaskEvent
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
Auto Trait Implementations§
impl Forget for TaskEvent
impl Freeze for TaskEvent
impl Move for TaskEvent
impl RefUnwindSafe for TaskEvent
impl Send for TaskEvent
impl Sync for TaskEvent
impl Unpin for TaskEvent
impl UnsafeUnpin for TaskEvent
impl UnwindSafe for TaskEvent
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