pub enum Grantee {
UserGrantee(UserGrantee),
GroupGrantee(GroupGrantee),
}Expand description
Represents a generic grantee.
Variants§
UserGrantee(UserGrantee)
Represents a user grantee.
GroupGrantee(GroupGrantee)
Represents a group grantee.
Implementations§
Source§impl Grantee
impl Grantee
Sourcepub fn user_grantee(user: impl Into<String>) -> Self
pub fn user_grantee(user: impl Into<String>) -> Self
Creates a new Grantee::UserGrantee instance
Sourcepub fn group_grantee(group_id: u32) -> Self
pub fn group_grantee(group_id: u32) -> Self
Creates a new Grantee::GroupGrantee instance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Grantee
impl RefUnwindSafe for Grantee
impl Send for Grantee
impl Sync for Grantee
impl Unpin for Grantee
impl UnwindSafe for Grantee
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