pub struct InvocationHistory {
pub invocation_id: InvocationId,
pub status_record: InvocationStatusRecord,
pub message: Option<String>,
pub runner_id: Option<RunnerId>,
pub registered_by_inv_id: Option<InvocationId>,
pub history_timestamp: Option<DateTime<Utc>>,
}Expand description
An audit log entry for status changes.
Fields§
§invocation_id: InvocationId§status_record: InvocationStatusRecord§message: Option<String>§runner_id: Option<RunnerId>The runner context that produced this status change, if any.
registered_by_inv_id: Option<InvocationId>The parent invocation that registered this one (workflow lineage).
history_timestamp: Option<DateTime<Utc>>The history-level timestamp (mirrors pynenc’s InvocationHistory._timestamp).
Used for time-range filtering. Defaults to status_record.timestamp when absent.
Implementations§
Source§impl InvocationHistory
impl InvocationHistory
pub fn new( invocation_id: InvocationId, status_record: InvocationStatusRecord, message: Option<String>, ) -> Self
pub fn with_runner(self, runner_id: RunnerId) -> Self
pub fn with_registered_by(self, inv_id: InvocationId) -> Self
Trait Implementations§
Source§impl Clone for InvocationHistory
impl Clone for InvocationHistory
Source§fn clone(&self) -> InvocationHistory
fn clone(&self) -> InvocationHistory
Returns a duplicate of the value. Read more
1.0.0 · 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 InvocationHistory
impl Debug for InvocationHistory
Source§impl<'de> Deserialize<'de> for InvocationHistory
impl<'de> Deserialize<'de> for InvocationHistory
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 Freeze for InvocationHistory
impl RefUnwindSafe for InvocationHistory
impl Send for InvocationHistory
impl Sync for InvocationHistory
impl Unpin for InvocationHistory
impl UnsafeUnpin for InvocationHistory
impl UnwindSafe for InvocationHistory
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