Enum dagpirs::HttpError [−][src]
pub enum HttpError { RequestFailed(Error), InternalServerError, NotFound, Unauthorized, FileTooLarge, ImageUnaccesbile(String), ParameterError(MissingParams), BadRequest(String), RateLimited(i32, i32), }
Expand description
Enum Used to store possible API errors
Variants
Tuple Fields of RequestFailed
0: Error
Tuple Fields of ImageUnaccesbile
0: String
Tuple Fields of ParameterError
Tuple Fields of BadRequest
0: String
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for HttpError
impl !UnwindSafe for HttpError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more