pub struct BatchJob<D>{
pub id: String,
pub resource_key: String,
pub operation: String,
pub overwrite_policy: OverwritePolicy,
pub items: Vec<BatchItem<D>>,
pub status: BatchJobStatus,
pub created_at: String,
pub started_at: Option<String>,
pub completed_at: Option<String>,
pub reordered: bool,
pub reorder_note: Option<String>,
}Expand description
A batch job containing multiple items processed with the same resource.
The “resource key” (e.g. model name) is used for intelligent reordering: jobs sharing a resource are grouped together to minimize expensive resource swaps (GPU model loads, connection setup, etc.).
Fields§
§id: StringUnique job identifier.
resource_key: StringThe resource key (e.g. model name) used for grouping.
operation: StringHuman-readable operation label (e.g. “tag”, “caption”, “embed”).
overwrite_policy: OverwritePolicyOverwrite policy for items that already have results.
items: Vec<BatchItem<D>>The items in this batch.
status: BatchJobStatusCurrent job status.
created_at: StringISO 8601 timestamp when the job was created.
started_at: Option<String>ISO 8601 timestamp when processing started.
completed_at: Option<String>ISO 8601 timestamp when processing finished.
reordered: boolWhether the job was reordered for resource optimization.
reorder_note: Option<String>Human-readable note explaining the reorder.
Trait Implementations§
Source§impl<'de, D> Deserialize<'de> for BatchJob<D>
impl<'de, D> Deserialize<'de> for BatchJob<D>
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<D> Freeze for BatchJob<D>
impl<D> RefUnwindSafe for BatchJob<D>where
D: RefUnwindSafe,
impl<D> Send for BatchJob<D>
impl<D> Sync for BatchJob<D>
impl<D> Unpin for BatchJob<D>where
D: Unpin,
impl<D> UnsafeUnpin for BatchJob<D>
impl<D> UnwindSafe for BatchJob<D>where
D: UnwindSafe,
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