pub enum ApiError {
MethodNotAllowed(String),
NotFound(String),
ForbiddenOperationException(String),
IllegalArgumentException(String),
UnsupportedMediaType(String),
Unknown {
error: String,
message: String,
},
}
Expand description
Error from Mojang API
The name of the enum means error
from the message,
it’s the short description of the error.
The String
contained in the enum means errorMessage
from the message,
it’s the longer description which can be shown to the user.
Variants§
MethodNotAllowed(String)
NotFound(String)
ForbiddenOperationException(String)
IllegalArgumentException(String)
UnsupportedMediaType(String)
Unknown
Unknown error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnwindSafe for ApiError
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