pub struct BatchJobInfo {
pub job_id: String,
pub status: String,
pub model: Option<String>,
pub title: Option<String>,
pub created_at: Option<String>,
pub completed_at: Option<String>,
pub result: Option<Value>,
pub error: Option<String>,
pub cost_ticks: i64,
}Expand description
A single job in the batch jobs list.
Fields§
§job_id: StringJob identifier.
status: StringCurrent status (e.g. “pending”, “running”, “completed”, “failed”).
model: Option<String>Model used for this job.
title: Option<String>Job title.
created_at: Option<String>When the job was created.
completed_at: Option<String>When the job completed.
result: Option<Value>Result data (present when completed).
error: Option<String>Error message (present when failed).
cost_ticks: i64Cost in ticks.
Trait Implementations§
Source§impl Clone for BatchJobInfo
impl Clone for BatchJobInfo
Source§fn clone(&self) -> BatchJobInfo
fn clone(&self) -> BatchJobInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchJobInfo
impl Debug for BatchJobInfo
Source§impl<'de> Deserialize<'de> for BatchJobInfo
impl<'de> Deserialize<'de> for BatchJobInfo
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 BatchJobInfo
impl RefUnwindSafe for BatchJobInfo
impl Send for BatchJobInfo
impl Sync for BatchJobInfo
impl Unpin for BatchJobInfo
impl UnsafeUnpin for BatchJobInfo
impl UnwindSafe for BatchJobInfo
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