Enum rusty_openai::error_handling::OpenAIError
source · pub enum OpenAIError {
ReqwestError(Error),
SerdeJsonError(Error),
IoError(Error),
}
Variants§
Trait Implementations§
source§impl Debug for OpenAIError
impl Debug for OpenAIError
source§impl Display for OpenAIError
impl Display for OpenAIError
source§impl From<Error> for OpenAIError
impl From<Error> for OpenAIError
source§fn from(error: ReqwestError) -> Self
fn from(error: ReqwestError) -> Self
Converts to this type from the input type.
source§impl From<Error> for OpenAIError
impl From<Error> for OpenAIError
source§fn from(error: SerdeJsonError) -> Self
fn from(error: SerdeJsonError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenAIError
impl !RefUnwindSafe for OpenAIError
impl Send for OpenAIError
impl Sync for OpenAIError
impl Unpin for OpenAIError
impl !UnwindSafe for OpenAIError
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