pub struct RunRecord {
pub id: RunId,
pub work: WorkItemId,
pub executor: ActorId,
pub recorded_by: ActorId,
pub parent: Option<RunId>,
pub session: Option<RunSession>,
pub observation: Observation,
pub sources: Vec<RunSource>,
pub exact_sources: Vec<ExactSource>,
pub contract: ContractObservation,
pub observed_started_at: Option<DateTime<Utc>>,
pub started_at: DateTime<Utc>,
}Expand description
A run as recorded when it started.
Fields§
§id: RunIdRun identity.
work: WorkItemIdThe task being executed.
executor: ActorIdThe principal doing the work.
recorded_by: ActorIdThe principal that recorded the run, the executor itself or a service acting for it.
parent: Option<RunId>Run that spawned this one.
session: Option<RunSession>Provider session.
observation: ObservationHow completely the executor is observed.
sources: Vec<RunSource>Exact source references as requested.
exact_sources: Vec<ExactSource>The exact commits those references resolved to, captured immutably at the start.
contract: ContractObservationThe contract observed at the start.
observed_started_at: Option<DateTime<Utc>>When the executor says the run began.
started_at: DateTime<Utc>When DPM recorded the start; this is the receipt time, from DPM’s own clock.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRecord
impl<'de> Deserialize<'de> for RunRecord
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 RunRecord
Auto Trait Implementations§
impl Freeze for RunRecord
impl RefUnwindSafe for RunRecord
impl Send for RunRecord
impl Sync for RunRecord
impl Unpin for RunRecord
impl UnsafeUnpin for RunRecord
impl UnwindSafe for RunRecord
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