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)>
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 OutsourceError
impl From<Error> for OutsourceError
Source§impl From<Error> for OutsourceError
impl From<Error> for OutsourceError
Source§impl Into<ProtocolError> for OutsourceError
impl Into<ProtocolError> for OutsourceError
Source§fn into(self) -> ProtocolError
fn into(self) -> ProtocolError
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for OutsourceError
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