pub enum IntoHttpError {
Json(Error),
Header(InvalidHeaderValue),
Http(Error),
UrlParams(UrlError),
QueryParams(Error),
MissingToken,
Validation(String),
}
Expand description
Error type for converting a request into an HTTP request.
Variants§
Json(Error)
Header(InvalidHeaderValue)
Http(Error)
UrlParams(UrlError)
QueryParams(Error)
MissingToken
Validation(String)
Trait Implementations§
Source§impl Debug for IntoHttpError
impl Debug for IntoHttpError
Source§impl Display for IntoHttpError
impl Display for IntoHttpError
Source§impl Error for IntoHttpError
impl Error for IntoHttpError
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 IntoHttpError
impl From<Error> for IntoHttpError
Source§fn from(source: Error) -> IntoHttpError
fn from(source: Error) -> IntoHttpError
Converts to this type from the input type.
Source§impl From<Error> for IntoHttpError
impl From<Error> for IntoHttpError
Source§fn from(source: Error) -> IntoHttpError
fn from(source: Error) -> IntoHttpError
Converts to this type from the input type.
Source§impl From<Error> for IntoHttpError
impl From<Error> for IntoHttpError
Source§fn from(source: Error) -> IntoHttpError
fn from(source: Error) -> IntoHttpError
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for IntoHttpError
impl From<InvalidHeaderValue> for IntoHttpError
Source§fn from(source: InvalidHeaderValue) -> IntoHttpError
fn from(source: InvalidHeaderValue) -> IntoHttpError
Converts to this type from the input type.
Source§impl From<UrlError> for IntoHttpError
impl From<UrlError> for IntoHttpError
Source§fn from(source: UrlError) -> IntoHttpError
fn from(source: UrlError) -> IntoHttpError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntoHttpError
impl !RefUnwindSafe for IntoHttpError
impl Send for IntoHttpError
impl Sync for IntoHttpError
impl Unpin for IntoHttpError
impl !UnwindSafe for IntoHttpError
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
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more