pub struct Installation {
pub id: u64,
pub account: InstallationAccount,
pub repository_selection: RepositorySelection,
pub repositories: Vec<OwnerRepo>,
pub permissions: Vec<(String, String)>,
}Expand description
One installation of the published App, and what it can actually reach.
Serializable, as is everything InstallationDiscovery holds, so that a
service can answer a discovery for a command that cannot read the
credential itself (an SSH session on a Mac, whose login keychain it cannot
unlock). Nothing in it is a secret.
Fields§
§id: u64§account: InstallationAccount§repository_selection: RepositorySelection§repositories: Vec<OwnerRepo>§permissions: Vec<(String, String)>The permissions GitHub reports for this installation, as
name -> level. Surfaced verbatim so auth status can show a grant the
user did not expect rather than assert the published set was applied.
Implementations§
Source§impl Installation
impl Installation
pub fn is_over_broad(&self) -> bool
Trait Implementations§
Source§impl Clone for Installation
impl Clone for Installation
Source§impl Debug for Installation
impl Debug for Installation
Source§impl<'de> Deserialize<'de> for Installation
impl<'de> Deserialize<'de> for Installation
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
impl Eq for Installation
Source§impl PartialEq for Installation
impl PartialEq for Installation
Source§impl Serialize for Installation
impl Serialize for Installation
impl StructuralPartialEq for Installation
Auto Trait Implementations§
impl Forget for Installation
impl Freeze for Installation
impl RefUnwindSafe for Installation
impl Send for Installation
impl Sync for Installation
impl Unpin for Installation
impl UnsafeUnpin for Installation
impl UnwindSafe for Installation
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.