pub struct RunStart {
pub id: RunId,
pub work: WorkItemId,
pub executor: ActorId,
pub parent: Option<RunId>,
pub session: Option<RunSession>,
pub observation: Observation,
pub sources: Vec<RunSource>,
pub observed_at: Option<DateTime<Utc>>,
}Expand description
What a caller asks to record when a run starts; the application adds what it observes.
Two requests with equal fields are one request, which is how a retry is told from a conflict.
Fields§
§id: RunIdRun identity and idempotency key, a version 7 UUID.
work: WorkItemIdThe task being executed.
executor: ActorIdThe principal doing the work; the task’s owner when the run starts.
parent: Option<RunId>Run that spawned this one, such as a parent agent’s run.
session: Option<RunSession>Provider session, absent for an executor with none.
observation: ObservationHow completely the executor is observed.
sources: Vec<RunSource>Exact source references; empty when none are known.
observed_at: Option<DateTime<Utc>>When the executor says the run began. It is a claim, never used to judge freshness.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunStart
impl<'de> Deserialize<'de> for RunStart
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 Eq for RunStart
impl StructuralPartialEq for RunStart
Auto Trait Implementations§
impl Freeze for RunStart
impl RefUnwindSafe for RunStart
impl Send for RunStart
impl Sync for RunStart
impl Unpin for RunStart
impl UnsafeUnpin for RunStart
impl UnwindSafe for RunStart
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