Enum basket::BasketError
source · pub enum BasketError {
InvalidTokenFormat,
InvalidUrl(ParseError),
RequestError(Error),
ApiError(ApiResponse),
}
Variants§
Trait Implementations§
source§impl Debug for BasketError
impl Debug for BasketError
source§impl Display for BasketError
impl Display for BasketError
source§impl Error for BasketError
impl Error for BasketError
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<ApiResponse> for BasketError
impl From<ApiResponse> for BasketError
source§fn from(source: ApiResponse) -> Self
fn from(source: ApiResponse) -> Self
Converts to this type from the input type.
source§impl From<Error> for BasketError
impl From<Error> for BasketError
source§impl From<ParseError> for BasketError
impl From<ParseError> for BasketError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.