pub enum AccessOperation<P> {
AddTeam {
team: TeamName,
permission: P,
},
RemoveTeam {
team: TeamName,
},
AddCollaborator {
user: UserName,
permission: P,
},
RemoveCollaborator {
user: UserName,
},
}Expand description
A write to team or collaborator grants that every forge has.
P is the forge’s permission type.
Variants§
AddTeam
Grant a team access to the repository.
RemoveTeam
Remove a direct team grant from the repository.
AddCollaborator
Grant a user access, or change the permission of an existing grant.
RemoveCollaborator
Remove a direct collaborator grant.
Trait Implementations§
Source§impl<P: Clone> Clone for AccessOperation<P>
impl<P: Clone> Clone for AccessOperation<P>
Source§fn clone(&self) -> AccessOperation<P>
fn clone(&self) -> AccessOperation<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 AccessOperation<P>
impl<P: Debug> Debug for AccessOperation<P>
Source§impl<P> Display for AccessOperation<P>
impl<P> Display for AccessOperation<P>
impl<P: Eq> Eq for AccessOperation<P>
Source§impl<P: PartialEq> PartialEq for AccessOperation<P>
impl<P: PartialEq> PartialEq for AccessOperation<P>
impl<P: PartialEq> StructuralPartialEq for AccessOperation<P>
Auto Trait Implementations§
impl<P> Freeze for AccessOperation<P>where
P: Freeze,
impl<P> RefUnwindSafe for AccessOperation<P>where
P: RefUnwindSafe,
impl<P> Send for AccessOperation<P>where
P: Send,
impl<P> Sync for AccessOperation<P>where
P: Sync,
impl<P> Unpin for AccessOperation<P>where
P: Unpin,
impl<P> UnsafeUnpin for AccessOperation<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for AccessOperation<P>where
P: UnwindSafe,
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.