pub struct Batch {Show 22 fields
pub id: String,
pub object: String,
pub endpoint: String,
pub model: Option<String>,
pub errors: Option<BatchErrors>,
pub input_file_id: String,
pub completion_window: String,
pub status: String,
pub output_file_id: Option<String>,
pub error_file_id: Option<String>,
pub created_at: i64,
pub in_progress_at: Option<i64>,
pub expires_at: i64,
pub finalizing_at: Option<i64>,
pub completed_at: Option<i64>,
pub failed_at: Option<i64>,
pub expired_at: Option<i64>,
pub cancelling_at: Option<i64>,
pub cancelled_at: Option<i64>,
pub request_counts: BatchRequestCounts,
pub metadata: Option<BTreeMap<String, String>>,
pub extra: Map<String, Value>,
}Expand description
Durable batch state; nullable timestamps are Unix seconds. Future status strings remain readable.
Fields§
§id: StringBatch id.
object: StringResource kind (batch).
endpoint: StringNative target endpoint.
model: Option<String>Effective model, once resolved.
errors: Option<BatchErrors>Validation errors, when present.
input_file_id: StringUploaded JSONL input id.
completion_window: StringInference window (24h).
status: Stringvalidating/failed/in_progress/finalizing/completed/expired/cancelling/cancelled.
output_file_id: Option<String>Successful results file, when published.
error_file_id: Option<String>Errors file, when published.
created_at: i64Creation time.
in_progress_at: Option<i64>Validation completed and processing became possible.
expires_at: i64End of inference window.
finalizing_at: Option<i64>Export started.
completed_at: Option<i64>Completed time.
failed_at: Option<i64>Failed time.
expired_at: Option<i64>Expired time.
cancelling_at: Option<i64>Cancellation requested time.
cancelled_at: Option<i64>Cancellation finalized time.
request_counts: BatchRequestCountsValidated/completed/failed counts.
metadata: Option<BTreeMap<String, String>>Owner-provided metadata.
extra: Map<String, Value>Future response fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Batch
impl<'de> Deserialize<'de> for Batch
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 Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
impl UnwindSafe for Batch
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