pub struct JobEntry {
pub job_id: JobId,
pub session_id: SessionId,
pub correlation_id: MessageId,
pub cancel: CancellationToken,
pub state: JobState,
pub agent: String,
pub created_at: DateTime<Utc>,
pub last_event_seq: u64,
pub parent_job_id: Option<JobId>,
pub credential_ids: Vec<CredentialId>,
pub lease: Option<LeaseRequest>,
}Expand description
Per-job runtime bookkeeping.
Fields§
§job_id: JobIdJob identifier.
session_id: SessionIdOwning session.
correlation_id: MessageIdCorrelation back to the originating tool.invoke envelope.
cancel: CancellationTokenCancellation token; child of the session token.
state: JobStateCurrent state.
agent: StringAgent reference (name or name@version) the job is running.
For v1.0-style tool.invoke submissions this is the tool name.
created_at: DateTime<Utc>Submission timestamp.
last_event_seq: u64Highest event sequence emitted for this job (ARCP v1.1 §6.6).
parent_job_id: Option<JobId>Parent job id for delegated / child jobs.
credential_ids: Vec<CredentialId>Provisioned credential ids issued for this job.
lease: Option<LeaseRequest>Accepted lease constraints for this job.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobEntry
impl RefUnwindSafe for JobEntry
impl Send for JobEntry
impl Sync for JobEntry
impl Unpin for JobEntry
impl UnsafeUnpin for JobEntry
impl UnwindSafe for JobEntry
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