openapi_github/models/
issues_add_labels_request_one_of.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 IssuesAddLabelsRequestOneOf {
16    /// The names of the labels to add to the issue's existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see \"[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue).\"
17    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
18    pub labels: Option<Vec<String>>,
19}
20
21impl IssuesAddLabelsRequestOneOf {
22    pub fn new() -> IssuesAddLabelsRequestOneOf {
23        IssuesAddLabelsRequestOneOf {
24            labels: None,
25        }
26    }
27}
28