Enum safe_app::User [−][src]
pub enum User { Anyone, Key(PublicKey), }
Subject of permissions
Variants
Anyone
Permissions apply to anyone.
Key(PublicKey)
Permissions apply to a single public key.
Trait Implementations
impl Serialize for User
[src]
impl Serialize for User
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl PartialOrd<User> for User
[src]
impl PartialOrd<User> for User
fn partial_cmp(&self, other: &User) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &User) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &User) -> bool
[src]
fn lt(&self, other: &User) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &User) -> bool
[src]
fn le(&self, other: &User) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &User) -> bool
[src]
fn gt(&self, other: &User) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &User) -> bool
[src]
fn ge(&self, other: &User) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for User
[src]
impl Hash for User
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for User
[src]
impl Clone for User
fn clone(&self) -> User
[src]
fn clone(&self) -> User
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)
Performs copy-assignment from source
. Read more
impl Debug for User
[src]
impl Debug for User
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Ord for User
[src]
impl Ord for User
fn cmp(&self, other: &User) -> Ordering
[src]
fn cmp(&self, other: &User) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<'de> Deserialize<'de> for User
[src]
impl<'de> Deserialize<'de> for User
fn deserialize<__D>(
__deserializer: __D
) -> Result<User, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<User, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for User
[src]
impl Copy for User
impl Eq for User
[src]
impl Eq for User
impl PartialEq<User> for User
[src]
impl PartialEq<User> for User