#[repr(u8)]pub enum RegistrationCode {
Show 13 variants
Ok = 0,
AccountExists = 1,
UsedEmail = 2,
InvalidEmail = 3,
ShortPassword = 4,
InvalidName = 5,
ShortName = 6,
DifferentPasswords = 7,
Error = 8,
LongName = 9,
GlobalBan = 10,
LongPassword = 11,
MaxAccounts = 12,
}Expand description
The return success value of a registration attempt
Variants§
Ok = 0
AccountExists = 1
UsedEmail = 2
InvalidEmail = 3
ShortPassword = 4
InvalidName = 5
ShortName = 6
DifferentPasswords = 7
Error = 8
LongName = 9
GlobalBan = 10
LongPassword = 11
MaxAccounts = 12
Trait Implementations§
Source§impl Clone for RegistrationCode
impl Clone for RegistrationCode
Source§fn clone(&self) -> RegistrationCode
fn clone(&self) -> RegistrationCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistrationCode
impl Debug for RegistrationCode
Source§impl Default for RegistrationCode
impl Default for RegistrationCode
Source§fn default() -> RegistrationCode
fn default() -> RegistrationCode
Returns the “default value” for a type. Read more
Source§impl Ord for RegistrationCode
impl Ord for RegistrationCode
Source§fn cmp(&self, other: &RegistrationCode) -> Ordering
fn cmp(&self, other: &RegistrationCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegistrationCode
impl PartialEq for RegistrationCode
Source§impl PartialOrd for RegistrationCode
impl PartialOrd for RegistrationCode
Source§impl TryFrom<u8> for RegistrationCode
impl TryFrom<u8> for RegistrationCode
Source§type Error = TryFromPrimitiveError<RegistrationCode>
type Error = TryFromPrimitiveError<RegistrationCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for RegistrationCode
impl TryFromPrimitive for RegistrationCode
const NAME: &'static str = "RegistrationCode"
type Primitive = u8
type Error = TryFromPrimitiveError<RegistrationCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RegistrationCode
impl Eq for RegistrationCode
impl StructuralPartialEq for RegistrationCode
Auto Trait Implementations§
impl Freeze for RegistrationCode
impl RefUnwindSafe for RegistrationCode
impl Send for RegistrationCode
impl Sync for RegistrationCode
impl Unpin for RegistrationCode
impl UnwindSafe for RegistrationCode
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