#[non_exhaustive]pub enum Right {
NsAdmin,
RepoCreate,
RepoOwn,
RepoMaintain,
CommitSign,
}Expand description
One of the five git rights a VTC grants (§4.2), by registry action.
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.
NsAdmin
git.ns.admin on a namespace.
RepoCreate
git.repo.create on a namespace.
RepoOwn
git.repo.own on a repository.
RepoMaintain
git.repo.maintain on a repository.
CommitSign
git.commit.sign on a repository or namespace — the tuple
verify-trust checks.
Implementations§
Trait Implementations§
impl Copy for Right
Source§impl<'de> Deserialize<'de> for Right
impl<'de> Deserialize<'de> for Right
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 Right
Source§impl Ord for Right
impl Ord for Right
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 PartialOrd for Right
impl PartialOrd for Right
impl StructuralPartialEq for Right
Auto Trait Implementations§
impl Freeze for Right
impl RefUnwindSafe for Right
impl Send for Right
impl Sync for Right
impl Unpin for Right
impl UnsafeUnpin for Right
impl UnwindSafe for Right
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