Enum redmine_api::Error
source · [−]pub enum Error {
ReqwestError(Error),
SerdeJsonError(Error),
UrlParseError(ParseError),
EnvyError(Error),
EmptyResponseBody(StatusCode),
NonObjectResponseBody(StatusCode),
PaginationKeyMissing(String),
PaginationKeyHasWrongType(String),
TimeParseError(String, Parse),
UploadFileError(PathBuf, Error),
}
Expand description
Error type for redmine_api
Variants
ReqwestError(Error)
An error occurred in the reqwest library (HTTP)
SerdeJsonError(Error)
An error occurred when serializing/deserializing JSON
UrlParseError(ParseError)
An error occurred when parsing a URL
EnvyError(Error)
An error occurred when reading configuration from environment variables
EmptyResponseBody(StatusCode)
Response body was empty so we can not deserialize it as JSON
NonObjectResponseBody(StatusCode)
Response body was valid JSON but not an object
PaginationKeyMissing(String)
Missing response pagination key (total_counts, offset, limit or the wrapper key)
PaginationKeyHasWrongType(String)
Response pagination key has the wrong type (total_counts, offset, limit)
TimeParseError(String, Parse)
Parsing a time string to a time object (OffsetDateTime) failed
UploadFileError(PathBuf, Error)
Error reading a file we are supposed to upload
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. 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