pub enum ListBatchesError {
RequestError(Error),
JsonParseError(Error, String),
OpenAiError(OpenAiError),
}Expand description
Errors that can occur when listing batches.
Variants§
RequestError(Error)
An error occured when sending the request to the API.
JsonParseError(Error, String)
An error occurred when deserializing JSON.
OpenAiError(OpenAiError)
An error occurred with the OpenAI API.
Trait Implementations§
Source§impl Debug for ListBatchesError
impl Debug for ListBatchesError
Source§impl Display for ListBatchesError
impl Display for ListBatchesError
Source§impl Error for ListBatchesError
impl Error for ListBatchesError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for ListBatchesError
impl From<Error> for ListBatchesError
Source§impl From<ListBatchesError> for BatchChatError
impl From<ListBatchesError> for BatchChatError
Source§fn from(source: ListBatchesError) -> Self
fn from(source: ListBatchesError) -> Self
Converts to this type from the input type.
Source§impl From<OpenAiError> for ListBatchesError
impl From<OpenAiError> for ListBatchesError
Source§fn from(source: OpenAiError) -> Self
fn from(source: OpenAiError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ListBatchesError
impl !RefUnwindSafe for ListBatchesError
impl Send for ListBatchesError
impl Sync for ListBatchesError
impl Unpin for ListBatchesError
impl UnsafeUnpin for ListBatchesError
impl !UnwindSafe for ListBatchesError
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