Enum postmark_client::errors::PostmarkClientError [−][src]
pub enum PostmarkClientError {
Unauthorized,
RequestToLarge,
UnprocessableEntity(APIError),
RateLimitExceeded,
InternalServerError,
ServiceUnavailable,
Reqwest(Error),
UnknownPostmarkStatus(StatusCode),
}Expand description
Represents the types of errors that can be encountered
Variants
Postmark returned an unauthorized status
https://postmarkapp.com/developer/api/overview#response-codes
Postmark returned a request to large status
https://postmarkapp.com/developer/api/overview#response-codes
UnprocessableEntity(APIError)Postmark returned an unprossable entity status
https://postmarkapp.com/developer/api/overview#response-codes
Tuple Fields of UnprocessableEntity
0: APIErrorPostmark returned a rate limit exceeded status
https://postmarkapp.com/developer/api/overview#response-codes
Postmark returned an internal server error status
https://postmarkapp.com/developer/api/overview#response-codes
Postmark returned a service unavailable status
https://postmarkapp.com/developer/api/overview#response-codes
Reqwest(Error)Error from reqwest
Tuple Fields of Reqwest
0: ErrorUnknownPostmarkStatus(StatusCode)Postmark returned an unknown status
https://postmarkapp.com/developer/api/overview#response-codes
Tuple Fields of UnknownPostmarkStatus
0: StatusCodeTrait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PostmarkClientError
impl Send for PostmarkClientError
impl Sync for PostmarkClientError
impl Unpin for PostmarkClientError
impl !UnwindSafe for PostmarkClientError
Blanket Implementations
Mutably borrows from an owned value. 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