#[repr(u32)]pub enum ErrorCode {
EmailNotFound = 1_000,
EmailUnverified = 1_001,
EmailConfirmationFailed = 1_002,
PasswordNotSet = 1_003,
GithubNotLinked = 1_004,
EmailAlreadyExist = 1_005,
InvalidPassword = 1_006,
HostedMailAccountUnverified = 1_007,
}Expand description
TODO: Move to ErrorResponse
Variants§
EmailNotFound = 1_000
EmailUnverified = 1_001
EmailConfirmationFailed = 1_002
PasswordNotSet = 1_003
GithubNotLinked = 1_004
EmailAlreadyExist = 1_005
InvalidPassword = 1_006
HostedMailAccountUnverified = 1_007
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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