Enum lockchain_core::users::Role [−][src]
pub enum Role { Reader, Editor, Admin, }
Specifies the capabilities of a user
Variants
Reader
Editor
Admin
Trait Implementations
impl Hash for Role
[src]
impl Hash for Role
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Role
[src]
impl Clone for Role
fn clone(&self) -> Role
[src]
fn clone(&self) -> Role
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Role
[src]
impl PartialEq for Role
fn eq(&self, other: &Role) -> bool
[src]
fn eq(&self, other: &Role) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Role
[src]
impl Eq for Role
impl AutoEncoder for Role
[src]
impl AutoEncoder for Role
fn encode(&self) -> Result<String, SerdeError>
[src]
fn encode(&self) -> Result<String, SerdeError>
fn decode(s: &str) -> Result<Self, SerdeError>
[src]
fn decode(s: &str) -> Result<Self, SerdeError>