pub struct Installation {Show 16 fields
pub id: InstallationId,
pub account: Account,
pub access_tokens_url: String,
pub repositories_url: String,
pub html_url: String,
pub app_id: GitHubAppId,
pub target_type: TargetType,
pub repository_selection: RepositorySelection,
pub permissions: InstallationPermissions,
pub events: Vec<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub single_file_name: Option<String>,
pub has_multiple_single_files: bool,
pub suspended_at: Option<DateTime<Utc>>,
pub suspended_by: Option<User>,
}Expand description
Installation information from GitHub API.
Represents a GitHub App installation on an organization or user account. Includes permissions, repository access, and subscription information.
§Examples
match installation.target_type {
TargetType::Organization => {
println!("Installed on organization: {}", installation.account.login);
}
TargetType::User => {
println!("Installed on user: {}", installation.account.login);
}
}Fields§
§id: InstallationId§account: Account§access_tokens_url: String§repositories_url: String§html_url: String§app_id: GitHubAppId§target_type: TargetType§repository_selection: RepositorySelection§permissions: InstallationPermissions§events: Vec<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§single_file_name: Option<String>§has_multiple_single_files: bool§suspended_at: Option<DateTime<Utc>>§suspended_by: Option<User>Trait Implementations§
Source§impl Clone for Installation
impl Clone for Installation
Source§fn clone(&self) -> Installation
fn clone(&self) -> Installation
Returns a duplicate of the value. Read more
1.0.0 · 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 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
Auto Trait Implementations§
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