openapi_github/models/
org_repo_custom_property_values.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/// OrgRepoCustomPropertyValues : List of custom property values for a repository
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OrgRepoCustomPropertyValues {
17    #[serde(rename = "repository_id")]
18    pub repository_id: i32,
19    #[serde(rename = "repository_name")]
20    pub repository_name: String,
21    #[serde(rename = "repository_full_name")]
22    pub repository_full_name: String,
23    /// List of custom property names and associated values
24    #[serde(rename = "properties")]
25    pub properties: Vec<models::CustomPropertyValue>,
26}
27
28impl OrgRepoCustomPropertyValues {
29    /// List of custom property values for a repository
30    pub fn new(repository_id: i32, repository_name: String, repository_full_name: String, properties: Vec<models::CustomPropertyValue>) -> OrgRepoCustomPropertyValues {
31        OrgRepoCustomPropertyValues {
32            repository_id,
33            repository_name,
34            repository_full_name,
35            properties,
36        }
37    }
38}
39