pub struct Grants<'a, P> {
pub scope: PermissionScope,
pub direct: &'a BTreeMap<TeamName, Observed<P>>,
pub inherited: &'a BTreeSet<TeamName>,
pub organization: &'a BTreeMap<TeamName, Observed<P>>,
pub caller: Option<&'a Caller>,
}Expand description
What the forge reports about team access to one repository.
Fields§
§scope: PermissionScopeWhether a grant can carry its own permission.
direct: &'a BTreeMap<TeamName, Observed<P>>Direct repository grants.
inherited: &'a BTreeSet<TeamName>Teams that reach the repository through an all-repositories team and cannot be removed from it.
organization: &'a BTreeMap<TeamName, Observed<P>>Organization teams that can be assigned to the repository.
caller: Option<&'a Caller>The account the plan runs as, when known.
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for Grants<'a, P>
impl<'a, P> RefUnwindSafe for Grants<'a, P>
impl<'a, P> Send for Grants<'a, P>
impl<'a, P> Sync for Grants<'a, P>
impl<'a, P> Unpin for Grants<'a, P>
impl<'a, P> UnsafeUnpin for Grants<'a, P>
impl<'a, P> UnwindSafe for Grants<'a, 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