pub enum AppError {
Database(String),
BadRequest(String),
NotFound(String),
TokenCreation,
InvalidToken,
Unauthorized,
}
Expand description
All errors raised by the web app
Variants§
Database(String)
Database error
BadRequest(String)
Generic bad request. It is handled with a message value
NotFound(String)
Not found error
TokenCreation
Raised when a token is not good created
InvalidToken
Raised when a passed token is not valid
Raised if an user wants to do something can’t do
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppError
impl RefUnwindSafe for AppError
impl Send for AppError
impl Sync for AppError
impl Unpin for AppError
impl UnwindSafe for AppError
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