pub struct Batch {
pub id: String,
pub object: Option<String>,
pub endpoint: Option<String>,
pub status: Option<String>,
pub input_file_id: Option<String>,
pub output_file_id: Option<String>,
pub error_file_id: Option<String>,
pub created_at: Option<i64>,
pub completed_at: Option<i64>,
pub request_counts: Option<BatchRequestCounts>,
}Expand description
An asynchronous batch job. Mirrors the OpenAI batch object; the gateway forwards batch traffic verbatim.
Fields§
§id: StringProvider-issued batch id.
object: Option<String>Object type (usually "batch").
endpoint: Option<String>The endpoint the batch targets.
status: Option<String>Lifecycle status.
input_file_id: Option<String>Input file id.
output_file_id: Option<String>Output file id (set when completed).
error_file_id: Option<String>Error file id (set when there were failures).
created_at: Option<i64>Unix creation timestamp.
completed_at: Option<i64>Unix completion timestamp.
request_counts: Option<BatchRequestCounts>Progress counts.
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