Skip to main content

windmill_api/models/
ghes_installation_callback_request.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.662.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GhesInstallationCallbackRequest {
16    /// The GitHub App installation ID from GHES
17    #[serde(rename = "installation_id")]
18    pub installation_id: i64,
19}
20
21impl GhesInstallationCallbackRequest {
22    pub fn new(installation_id: i64) -> GhesInstallationCallbackRequest {
23        GhesInstallationCallbackRequest {
24            installation_id,
25        }
26    }
27}
28