pub enum AdminLevel {
NotAdmin,
BetaTester,
Admin,
Owner,
}Expand description
Admin level
Variants§
NotAdmin
Not admin: can create private contests only
BetaTester
Beta tester: just a status
Admin
Admin level: can create public contests and edit them
Owner
Owner: can manage users, edit and view any public contest
Trait Implementations§
Source§impl Clone for AdminLevel
impl Clone for AdminLevel
Source§fn clone(&self) -> AdminLevel
fn clone(&self) -> AdminLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AdminLevel
impl Debug for AdminLevel
Source§impl<'de> Deserialize<'de> for AdminLevel
impl<'de> Deserialize<'de> for AdminLevel
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 Eq for AdminLevel
Source§impl Ord for AdminLevel
impl Ord for AdminLevel
Source§fn cmp(&self, other: &AdminLevel) -> Ordering
fn cmp(&self, other: &AdminLevel) -> Ordering
1.21.0 (const: unstable) · 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 AdminLevel
impl PartialEq for AdminLevel
Source§impl PartialOrd for AdminLevel
impl PartialOrd for AdminLevel
Source§impl Serialize for AdminLevel
impl Serialize for AdminLevel
impl StructuralPartialEq for AdminLevel
Auto Trait Implementations§
impl Freeze for AdminLevel
impl RefUnwindSafe for AdminLevel
impl Send for AdminLevel
impl Sync for AdminLevel
impl Unpin for AdminLevel
impl UnsafeUnpin for AdminLevel
impl UnwindSafe for AdminLevel
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