Enum lockchain_core::users::Role [−][src]
pub enum Role {
Reader,
Editor,
Admin,
}Specifies the capabilities of a user
Variants
ReaderEditorAdmin
Trait Implementations
impl Hash for Role[src]
impl Hash for Rolefn 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 Rolefn clone(&self) -> Role[src]
fn clone(&self) -> RoleReturns 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 Rolefn eq(&self, other: &Role) -> bool[src]
fn eq(&self, other: &Role) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Role[src]
impl Eq for Roleimpl AutoEncoder for Role[src]
impl AutoEncoder for Rolefn 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>