openapi_github/models/
manifest.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 Manifest {
16    /// The name of the manifest.
17    #[serde(rename = "name")]
18    pub name: String,
19    #[serde(rename = "file", skip_serializing_if = "Option::is_none")]
20    pub file: Option<Box<models::ManifestFile>>,
21    /// User-defined metadata to store domain-specific information limited to 8 keys with scalar values.
22    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
23    pub metadata: Option<std::collections::HashMap<String, models::MetadataValue>>,
24    /// A collection of resolved package dependencies.
25    #[serde(rename = "resolved", skip_serializing_if = "Option::is_none")]
26    pub resolved: Option<std::collections::HashMap<String, models::Dependency>>,
27}
28
29impl Manifest {
30    pub fn new(name: String) -> Manifest {
31        Manifest {
32            name,
33            file: None,
34            metadata: None,
35            resolved: None,
36        }
37    }
38}
39