openapi_github/models/
simple_installation.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SimpleInstallation : The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured for and sent to a GitHub App. For more information, see \"[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps).\"
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SimpleInstallation {
17    /// The ID of the installation.
18    #[serde(rename = "id")]
19    pub id: i32,
20    /// The global node ID of the installation.
21    #[serde(rename = "node_id")]
22    pub node_id: String,
23}
24
25impl SimpleInstallation {
26    /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured for and sent to a GitHub App. For more information, see \"[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps).\"
27    pub fn new(id: i32, node_id: String) -> SimpleInstallation {
28        SimpleInstallation {
29            id,
30            node_id,
31        }
32    }
33}
34