pub enum AclGrantee {
Public,
Role(String),
}Expand description
A named recipient can have any valid role spelling, including the quoted name PUBLIC.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AclGrantee
impl Clone for AclGrantee
Source§fn clone(&self) -> AclGrantee
fn clone(&self) -> AclGrantee
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 AclGrantee
impl Debug for AclGrantee
Source§impl<'de> Deserialize<'de> for AclGrantee
impl<'de> Deserialize<'de> for AclGrantee
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AclGrantee, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AclGrantee, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AclGrantee
impl Display for AclGrantee
impl Eq for AclGrantee
Source§impl From<&str> for AclGrantee
impl From<&str> for AclGrantee
Source§fn from(name: &str) -> AclGrantee
fn from(name: &str) -> AclGrantee
Converts to this type from the input type.
Source§impl From<String> for AclGrantee
impl From<String> for AclGrantee
Source§fn from(name: String) -> AclGrantee
fn from(name: String) -> AclGrantee
Converts to this type from the input type.
Source§impl Ord for AclGrantee
impl Ord for AclGrantee
Source§fn cmp(&self, other: &AclGrantee) -> Ordering
fn cmp(&self, other: &AclGrantee) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AclGrantee
impl PartialEq for AclGrantee
Source§impl PartialOrd for AclGrantee
impl PartialOrd for AclGrantee
Source§impl RoleSubject for AclGrantee
impl RoleSubject for AclGrantee
fn role_name<'a>( &'a self, _roles: &'a BTreeMap<String, RoleDefinition>, ) -> Option<&'a str>
fn role_definition<'a>( &self, roles: &'a BTreeMap<String, RoleDefinition>, ) -> Option<&'a RoleDefinition>
Source§impl Serialize for AclGrantee
impl Serialize for AclGrantee
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 StructuralPartialEq for AclGrantee
Auto Trait Implementations§
impl Freeze for AclGrantee
impl RefUnwindSafe for AclGrantee
impl Send for AclGrantee
impl Sync for AclGrantee
impl Unpin for AclGrantee
impl UnsafeUnpin for AclGrantee
impl UnwindSafe for AclGrantee
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more