#[non_exhaustive]pub enum ForgeRole {
None,
Read,
Triage,
Write,
Maintain,
Admin,
}Expand description
A person’s role on a repository, on the forge’s side, as a point on the
common ladder. Ordered: None < Read < … < Admin.
GitHub offers every level; Forgejo only Read, Write and Admin; a
GitHub personal account only Write collaborators. Each adapter declares
its ladder in crate::Capabilities::role_levels.
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.
None
No direct role (fork-based contribution).
Read
Read.
Triage
Triage (GitHub).
Write
Write / push.
Maintain
Maintain (GitHub): merge and manage without admin settings.
Admin
Admin.
Trait Implementations§
impl Copy for ForgeRole
Source§impl<'de> Deserialize<'de> for ForgeRole
impl<'de> Deserialize<'de> for ForgeRole
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 ForgeRole
Source§impl Ord for ForgeRole
impl Ord for ForgeRole
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 ForgeRole
impl PartialOrd for ForgeRole
impl StructuralPartialEq for ForgeRole
Auto Trait Implementations§
impl Freeze for ForgeRole
impl RefUnwindSafe for ForgeRole
impl Send for ForgeRole
impl Sync for ForgeRole
impl Unpin for ForgeRole
impl UnsafeUnpin for ForgeRole
impl UnwindSafe for ForgeRole
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