openapi_github/models/custom_deployment_rule_app.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/// CustomDeploymentRuleApp : A GitHub App that is providing a custom deployment protection rule.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomDeploymentRuleApp {
17 /// The unique identifier of the deployment protection rule integration.
18 #[serde(rename = "id")]
19 pub id: i32,
20 /// The slugified name of the deployment protection rule integration.
21 #[serde(rename = "slug")]
22 pub slug: String,
23 /// The URL for the endpoint to get details about the app.
24 #[serde(rename = "integration_url")]
25 pub integration_url: String,
26 /// The node ID for the deployment protection rule integration.
27 #[serde(rename = "node_id")]
28 pub node_id: String,
29}
30
31impl CustomDeploymentRuleApp {
32 /// A GitHub App that is providing a custom deployment protection rule.
33 pub fn new(id: i32, slug: String, integration_url: String, node_id: String) -> CustomDeploymentRuleApp {
34 CustomDeploymentRuleApp {
35 id,
36 slug,
37 integration_url,
38 node_id,
39 }
40 }
41}
42