#[non_exhaustive]pub enum Principal {
Subject(Subject),
Everyone,
Authenticated,
Owner,
OwnerGroup,
Mask,
}Expand description
Who an entry applies to, written as text in an entry: a [Subject] (account:<name>,
person:<id>, group:<name>), or everyone, authenticated, owner, owner_group,
mask.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Subject(Subject)
One account, person or group.
Everyone
Anyone, signed in or not (Windows Everyone, NFSv4 everyone@, POSIX other).
Authenticated
Anyone signed in.
Owner
The item’s owner (Windows CREATOR OWNER and OWNER RIGHTS, NFSv4 owner@, POSIX
user object).
OwnerGroup
Members of the item’s owning group (NFSv4 group@, POSIX group object).
Mask
The POSIX mask, which caps named users and groups; only in Posix mode.
Implementations§
Trait Implementations§
impl Eq for Principal
impl StructuralPartialEq for Principal
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnsafeUnpin for Principal
impl UnwindSafe for Principal
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