openapi_github/models/
projects_create_card_request_one_of_1.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 ProjectsCreateCardRequestOneOf1 {
16    /// The unique identifier of the content associated with the card
17    #[serde(rename = "content_id")]
18    pub content_id: i32,
19    /// The piece of content associated with the card
20    #[serde(rename = "content_type")]
21    pub content_type: String,
22}
23
24impl ProjectsCreateCardRequestOneOf1 {
25    pub fn new(content_id: i32, content_type: String) -> ProjectsCreateCardRequestOneOf1 {
26        ProjectsCreateCardRequestOneOf1 {
27            content_id,
28            content_type,
29        }
30    }
31}
32