pub enum DeleteError {
NotFound,
IncorrectKey,
InternalServer(Error),
}
Expand description
Errors that could occur when deleting an upload
Variants§
NotFound
an upload at the specified id was not found
IncorrectKey
incorrect delete key
InternalServer(Error)
internal server error
Trait Implementations§
Source§impl Debug for DeleteError
impl Debug for DeleteError
Source§impl Display for DeleteError
impl Display for DeleteError
Source§impl Error for DeleteError
impl Error for DeleteError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DeleteUploadError> for DeleteError
impl From<DeleteUploadError> for DeleteError
Source§fn from(err: DeleteUploadError) -> Self
fn from(err: DeleteUploadError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DeleteError
impl From<Error> for DeleteError
Source§impl IntoResponse for DeleteError
impl IntoResponse for DeleteError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for DeleteError
impl RefUnwindSafe for DeleteError
impl Send for DeleteError
impl Sync for DeleteError
impl Unpin for DeleteError
impl UnwindSafe for DeleteError
Blanket Implementations§
Source§impl<T> ApiErrorExt for T
impl<T> ApiErrorExt for T
Source§fn into_response_with_code(self, code: StatusCode) -> Response
fn into_response_with_code(self, code: StatusCode) -> Response
Consume the error and convert it to a
Response
with the specified
StatusCode
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