pub enum InstallationAccount {
User(String),
Organization(Org),
Enterprise(String),
}Expand description
Whose account an installation sits on.
Variants§
User(String)
Organization(Org)
Enterprise(String)
An enterprise account.
It is its own variant rather than a InstallationAccount::User
because it is not one, and auth status says out loud whose account
each installation sits on. Everything GitHub reports without
type: "Organization" used to fall into User, so an enterprise was
labelled a user — a wrong statement about the operator’s own account, on
the one screen that exists to tell them what their credential reaches.
It contributes nothing to ReachableTargets::organizations, and that
is correct rather than a second bug: an enterprise is not an
organization, and GET /orgs/{org}/actions/runners does not accept one.
The distinction is only visible now because the label is.
Implementations§
Source§impl InstallationAccount
impl InstallationAccount
Trait Implementations§
Source§impl Clone for InstallationAccount
impl Clone for InstallationAccount
Source§fn clone(&self) -> InstallationAccount
fn clone(&self) -> InstallationAccount
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 Debug for InstallationAccount
impl Debug for InstallationAccount
Source§impl Display for InstallationAccount
impl Display for InstallationAccount
impl Eq for InstallationAccount
Source§impl PartialEq for InstallationAccount
impl PartialEq for InstallationAccount
impl StructuralPartialEq for InstallationAccount
Auto Trait Implementations§
impl Freeze for InstallationAccount
impl RefUnwindSafe for InstallationAccount
impl Send for InstallationAccount
impl Sync for InstallationAccount
impl Unpin for InstallationAccount
impl UnsafeUnpin for InstallationAccount
impl UnwindSafe for InstallationAccount
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.