pub enum AccessRight {
Read,
History,
Write,
Create,
Remove,
Share,
Manage,
Admin,
}Expand description
One right a grant can carry.
Variants§
Read
Read the item: names and kinds of a directory’s entries, or a file’s current bytes.
History
Read older revisions and snapshots.
Write
Change the item: new revisions and attributes.
Create
Add an entry to a directory.
Remove
Remove an entry from a directory.
Grant a subset of one’s own rights to others.
Manage
Change any grant or the boundary.
Admin
Every right on every inode. Valid only on the root inode’s row.
Implementations§
Trait Implementations§
Source§impl Clone for AccessRight
impl Clone for AccessRight
impl Copy for AccessRight
Source§impl Debug for AccessRight
impl Debug for AccessRight
Source§impl<'de> Deserialize<'de> for AccessRight
impl<'de> Deserialize<'de> for AccessRight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AccessRight
Source§impl FromIterator<AccessRight> for AccessRights
impl FromIterator<AccessRight> for AccessRights
Source§fn from_iter<I: IntoIterator<Item = AccessRight>>(rights: I) -> Self
fn from_iter<I: IntoIterator<Item = AccessRight>>(rights: I) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for AccessRight
impl Hash for AccessRight
Source§impl Ord for AccessRight
impl Ord for AccessRight
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 AccessRight
impl PartialEq for AccessRight
Source§impl PartialOrd for AccessRight
impl PartialOrd for AccessRight
Source§impl Serialize for AccessRight
impl Serialize for AccessRight
impl StructuralPartialEq for AccessRight
Auto Trait Implementations§
impl Freeze for AccessRight
impl RefUnwindSafe for AccessRight
impl Send for AccessRight
impl Sync for AccessRight
impl Unpin for AccessRight
impl UnsafeUnpin for AccessRight
impl UnwindSafe for AccessRight
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