Enum langchain_rust::embedding::EmbedderError
source · pub enum EmbedderError {
RequestError(Error),
OpenAIError(OpenAIError),
UrlParseError(ParseError),
HttpError {
status_code: StatusCode,
error_message: String,
},
}
Variants§
Trait Implementations§
source§impl Debug for EmbedderError
impl Debug for EmbedderError
source§impl Display for EmbedderError
impl Display for EmbedderError
source§impl Error for EmbedderError
impl Error for EmbedderError
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<EmbedderError> for RouteLayerBuilderError
impl From<EmbedderError> for RouteLayerBuilderError
source§fn from(source: EmbedderError) -> Self
fn from(source: EmbedderError) -> Self
Converts to this type from the input type.
source§impl From<EmbedderError> for RouteLayerError
impl From<EmbedderError> for RouteLayerError
source§fn from(source: EmbedderError) -> Self
fn from(source: EmbedderError) -> Self
Converts to this type from the input type.
source§impl From<Error> for EmbedderError
impl From<Error> for EmbedderError
source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
source§impl From<OpenAIError> for EmbedderError
impl From<OpenAIError> for EmbedderError
source§fn from(source: OpenAIError) -> Self
fn from(source: OpenAIError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for EmbedderError
impl From<ParseError> for EmbedderError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EmbedderError
impl !RefUnwindSafe for EmbedderError
impl Send for EmbedderError
impl Sync for EmbedderError
impl Unpin for EmbedderError
impl !UnwindSafe for EmbedderError
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