openapi_github/models/checks_create_request_actions_inner.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ChecksCreateRequestActionsInner {
16 /// The text to be displayed on a button in the web UI. The maximum size is 20 characters.
17 #[serde(rename = "label")]
18 pub label: String,
19 /// A short explanation of what this action would do. The maximum size is 40 characters.
20 #[serde(rename = "description")]
21 pub description: String,
22 /// A reference for the action on the integrator's system. The maximum size is 20 characters.
23 #[serde(rename = "identifier")]
24 pub identifier: String,
25}
26
27impl ChecksCreateRequestActionsInner {
28 pub fn new(label: String, description: String, identifier: String) -> ChecksCreateRequestActionsInner {
29 ChecksCreateRequestActionsInner {
30 label,
31 description,
32 identifier,
33 }
34 }
35}
36