pub enum AccessDecision<P> {
Add {
team: TeamName,
permission: P,
},
Remove {
team: TeamName,
},
SelfRemoval {
team: TeamName,
},
PermissionMismatch {
team: TeamName,
expected: P,
actual: Observed<P>,
},
NotInOrganization {
team: TeamName,
},
OrganizationPermission {
team: TeamName,
expected: P,
actual: Observed<P>,
},
Matches {
team: TeamName,
},
Inherited {
team: TeamName,
},
}Expand description
One step toward the declared team access.
Variants§
Add
Grant the team access with this permission.
Remove
Remove the team’s direct grant.
SelfRemoval
Removing the team’s direct grant would remove the caller’s own access.
PermissionMismatch
The team has access with a different permission.
Fields
§
expected: PThe declared permission.
NotInOrganization
The organization has no team with this name.
OrganizationPermission
The team exists, but its organization-wide permission is not the declared one.
Fields
§
expected: PThe declared permission.
Matches
The team already has the declared permission.
Inherited
An undeclared grant that the forge does not let this repository remove.
Implementations§
Trait Implementations§
Source§impl<P: Clone> Clone for AccessDecision<P>
impl<P: Clone> Clone for AccessDecision<P>
Source§fn clone(&self) -> AccessDecision<P>
fn clone(&self) -> AccessDecision<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for AccessDecision<P>
impl<P: Debug> Debug for AccessDecision<P>
impl<P: Eq> Eq for AccessDecision<P>
Source§impl<P: PartialEq> PartialEq for AccessDecision<P>
impl<P: PartialEq> PartialEq for AccessDecision<P>
impl<P: PartialEq> StructuralPartialEq for AccessDecision<P>
Auto Trait Implementations§
impl<P> Freeze for AccessDecision<P>
impl<P> RefUnwindSafe for AccessDecision<P>
impl<P> Send for AccessDecision<P>
impl<P> Sync for AccessDecision<P>
impl<P> Unpin for AccessDecision<P>
impl<P> UnsafeUnpin for AccessDecision<P>
impl<P> UnwindSafe for AccessDecision<P>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.