#[non_exhaustive]pub enum AccessSource {
Team(String),
OrgOwner(String),
OrgMember(String),
}Expand description
Where access that is not a direct role comes from.
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.
Team(String)
Membership of a team with access to the repository (the team’s name).
OrgOwner(String)
Being an owner of the organisation (its login).
OrgMember(String)
The permission every member of the organisation has on its repositories (the organisation’s login).
Trait Implementations§
Source§impl Clone for AccessSource
impl Clone for AccessSource
Source§impl Debug for AccessSource
impl Debug for AccessSource
Source§impl<'de> Deserialize<'de> for AccessSource
impl<'de> Deserialize<'de> for AccessSource
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
Source§impl Display for AccessSource
impl Display for AccessSource
impl Eq for AccessSource
Source§impl PartialEq for AccessSource
impl PartialEq for AccessSource
Source§impl Serialize for AccessSource
impl Serialize for AccessSource
impl StructuralPartialEq for AccessSource
Auto Trait Implementations§
impl Freeze for AccessSource
impl RefUnwindSafe for AccessSource
impl Send for AccessSource
impl Sync for AccessSource
impl Unpin for AccessSource
impl UnsafeUnpin for AccessSource
impl UnwindSafe for AccessSource
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