pub enum BatchDownloadError {
BatchFailed {
batch_id: String,
},
BatchStillProcessing {
batch_id: String,
},
ErrorFileAlreadyExists {
triple: BatchFileTriple,
},
OutputFileAlreadyExists {
triple: BatchFileTriple,
},
UnknownBatchStatus {
batch_id: String,
status: BatchStatus,
},
BatchMetadataError(BatchMetadataError),
IoError(Error),
OpenAIClientError(OpenAIClientError),
}
Variants§
BatchFailed
BatchStillProcessing
ErrorFileAlreadyExists
Fields
§
triple: BatchFileTriple
OutputFileAlreadyExists
Fields
§
triple: BatchFileTriple
UnknownBatchStatus
BatchMetadataError(BatchMetadataError)
IoError(Error)
OpenAIClientError(OpenAIClientError)
Trait Implementations§
Source§impl Debug for BatchDownloadError
impl Debug for BatchDownloadError
Source§impl Display for BatchDownloadError
impl Display for BatchDownloadError
Source§impl From<BatchMetadataError> for BatchDownloadError
impl From<BatchMetadataError> for BatchDownloadError
Source§fn from(x: BatchMetadataError) -> Self
fn from(x: BatchMetadataError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BatchDownloadError
impl From<Error> for BatchDownloadError
Source§impl From<ApiError> for BatchDownloadError
impl From<ApiError> for BatchDownloadError
Source§fn from(x: OpenAIApiError) -> Self
fn from(x: OpenAIApiError) -> Self
Converts to this type from the input type.
Source§impl From<OpenAIClientError> for BatchDownloadError
impl From<OpenAIClientError> for BatchDownloadError
Source§fn from(x: OpenAIClientError) -> Self
fn from(x: OpenAIClientError) -> Self
Converts to this type from the input type.
Source§impl From<OpenAIError> for BatchDownloadError
impl From<OpenAIError> for BatchDownloadError
Source§fn from(x: OpenAIError) -> Self
fn from(x: OpenAIError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatchDownloadError
impl !RefUnwindSafe for BatchDownloadError
impl Send for BatchDownloadError
impl Sync for BatchDownloadError
impl Unpin for BatchDownloadError
impl !UnwindSafe for BatchDownloadError
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