pub enum OutsourceError {
ProviderNotFound(String),
APIKeyNotDefined,
HostURLParse,
HttpRequestError(Error),
BadHttpStatusCode {
status: StatusCode,
body: String,
},
Serialization(Error),
NoTextInResponse,
ModelDescriptionParse,
ModelParamsNotObject,
}
Expand description
Error enum containing all possible backend errors.
Variants§
ProviderNotFound(String)
APIKeyNotDefined
HostURLParse
HttpRequestError(Error)
BadHttpStatusCode
Serialization(Error)
NoTextInResponse
ModelDescriptionParse
ModelParamsNotObject
Trait Implementations§
source§impl Debug for OutsourceError
impl Debug for OutsourceError
source§impl Display for OutsourceError
impl Display for OutsourceError
source§impl Error for OutsourceError
impl Error for OutsourceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 OutsourceError
impl From<Error> for OutsourceError
source§impl From<Error> for OutsourceError
impl From<Error> for OutsourceError
Auto Trait Implementations§
impl !RefUnwindSafe for OutsourceError
impl Send for OutsourceError
impl Sync for OutsourceError
impl Unpin for OutsourceError
impl !UnwindSafe for OutsourceError
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