Struct octocrab::models::Installation
source · #[non_exhaustive]pub struct Installation {Show 14 fields
pub id: InstallationId,
pub account: Author,
pub access_tokens_url: Option<String>,
pub repositories_url: Option<String>,
pub html_url: Option<String>,
pub app_id: Option<AppId>,
pub target_id: Option<UserOrOrgId>,
pub target_type: Option<String>,
pub permissions: InstallationPermissions,
pub events: Vec<String>,
pub single_file_name: Option<String>,
pub repository_selection: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: InstallationId
§account: Author
§access_tokens_url: Option<String>
§repositories_url: Option<String>
§html_url: Option<String>
§app_id: Option<AppId>
§target_id: Option<UserOrOrgId>
§target_type: Option<String>
§permissions: InstallationPermissions
§events: Vec<String>
List of events in the installation.
Note that for Webhook events, the list of events in the list is guaranteed to match variants from WebhookEventType
single_file_name: Option<String>
§repository_selection: Option<String>
§created_at: Option<DateTime<Utc>>
§updated_at: Option<DateTime<Utc>>
Trait Implementations§
source§impl Clone for Installation
impl Clone for Installation
source§fn clone(&self) -> Installation
fn clone(&self) -> Installation
Returns a copy 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
source§impl Hash for Installation
impl Hash for Installation
source§impl PartialEq for Installation
impl PartialEq for Installation
source§fn eq(&self, other: &Installation) -> bool
fn eq(&self, other: &Installation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Installation
impl Serialize for Installation
impl Eq for Installation
impl StructuralPartialEq for Installation
Auto Trait Implementations§
impl Freeze for Installation
impl RefUnwindSafe for Installation
impl Send for Installation
impl Sync for Installation
impl Unpin 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