pub struct BatchJobOut {Show 19 fields
pub id: String,
pub object: Option<Object>,
pub input_files: Vec<Uuid>,
pub metadata: Option<Option<HashMap<String, Value>>>,
pub endpoint: String,
pub model: Option<Option<String>>,
pub agent_id: Option<Option<String>>,
pub output_file: Option<Option<Uuid>>,
pub error_file: Option<Option<Uuid>>,
pub errors: Vec<BatchError>,
pub outputs: Option<Option<Vec<HashMap<String, Value>>>>,
pub status: BatchJobStatus,
pub created_at: i32,
pub total_requests: i32,
pub completed_requests: i32,
pub succeeded_requests: i32,
pub failed_requests: i32,
pub started_at: Option<Option<i32>>,
pub completed_at: Option<Option<i32>>,
}Fields§
§id: String§object: Option<Object>§input_files: Vec<Uuid>§metadata: Option<Option<HashMap<String, Value>>>§endpoint: String§model: Option<Option<String>>§agent_id: Option<Option<String>>§output_file: Option<Option<Uuid>>§error_file: Option<Option<Uuid>>§errors: Vec<BatchError>§outputs: Option<Option<Vec<HashMap<String, Value>>>>§status: BatchJobStatus§created_at: i32§total_requests: i32§completed_requests: i32§succeeded_requests: i32§failed_requests: i32§started_at: Option<Option<i32>>§completed_at: Option<Option<i32>>Implementations§
Source§impl BatchJobOut
impl BatchJobOut
pub fn new( id: String, input_files: Vec<Uuid>, endpoint: String, errors: Vec<BatchError>, status: BatchJobStatus, created_at: i32, total_requests: i32, completed_requests: i32, succeeded_requests: i32, failed_requests: i32, ) -> BatchJobOut
Trait Implementations§
Source§impl Clone for BatchJobOut
impl Clone for BatchJobOut
Source§fn clone(&self) -> BatchJobOut
fn clone(&self) -> BatchJobOut
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 BatchJobOut
impl Debug for BatchJobOut
Source§impl Default for BatchJobOut
impl Default for BatchJobOut
Source§fn default() -> BatchJobOut
fn default() -> BatchJobOut
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchJobOut
impl<'de> Deserialize<'de> for BatchJobOut
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
Source§impl PartialEq for BatchJobOut
impl PartialEq for BatchJobOut
Source§impl Serialize for BatchJobOut
impl Serialize for BatchJobOut
impl StructuralPartialEq for BatchJobOut
Auto Trait Implementations§
impl Freeze for BatchJobOut
impl RefUnwindSafe for BatchJobOut
impl Send for BatchJobOut
impl Sync for BatchJobOut
impl Unpin for BatchJobOut
impl UnsafeUnpin for BatchJobOut
impl UnwindSafe for BatchJobOut
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