pub struct Job {
pub job_id: String,
pub task_name: String,
pub actor_json: Value,
pub params_json: Value,
pub priority: i32,
pub pool: String,
pub status: JobStatus,
pub idempotency_key: Option<String>,
pub created_at: DateTime<Utc>,
pub signature_hash: u64,
pub attempt: i32,
}Expand description
An enqueued unit of work (one task invocation).
Fields§
§job_id: StringUnique identifier (UUID).
task_name: StringTask name (must exist in registry).
actor_json: ValueCaptured actor (identity) at enqueue time.
params_json: ValueSerialized task parameters.
priority: i32Priority (lower = higher priority). From task config.
pool: StringPool name for worker assignment.
status: JobStatusCurrent status.
idempotency_key: Option<String>Optional idempotency key.
created_at: DateTime<Utc>When the job was enqueued.
signature_hash: u64Signature hash at enqueue (for validation).
attempt: i32Attempt number (1-based); incremented on retry.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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