pub struct BatchJob {
pub id: String,
pub status: BatchStatus,
pub created_at: Option<String>,
pub completed_at: Option<String>,
pub usage: Option<Usage>,
}Expand description
Provider-owned batch job metadata.
A terminal job can contain failed, cancelled, or expired rows. Inspect each
BatchResult separately; cancellation success does not prove row success.
§Examples
use providers_kit::batch::{BatchJob, BatchStatus};
let job = BatchJob {
id: "owned-job".into(),
status: BatchStatus::Queued,
created_at: None,
completed_at: None,
usage: None,
};
assert!(matches!(job.status, BatchStatus::Queued));Fields§
§id: StringExact provider-native batch identifier.
status: BatchStatusCurrent provider-authored lifecycle status.
created_at: Option<String>Provider creation timestamp, when reported.
completed_at: Option<String>Provider completion timestamp, when reported.
usage: Option<Usage>Aggregate token usage, when reported.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BatchJob
impl<'de> Deserialize<'de> for BatchJob
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 BatchJob
Auto Trait Implementations§
impl Freeze for BatchJob
impl RefUnwindSafe for BatchJob
impl Send for BatchJob
impl Sync for BatchJob
impl Unpin for BatchJob
impl UnsafeUnpin for BatchJob
impl UnwindSafe for BatchJob
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