openapi_github/models/
dependency_graph_create_repository_snapshot_201_response.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 DependencyGraphCreateRepositorySnapshot201Response {
16    /// ID of the created snapshot.
17    #[serde(rename = "id")]
18    pub id: i32,
19    /// The time at which the snapshot was created.
20    #[serde(rename = "created_at")]
21    pub created_at: String,
22    /// Either \"SUCCESS\", \"ACCEPTED\", or \"INVALID\". \"SUCCESS\" indicates that the snapshot was successfully created and the repository's dependencies were updated. \"ACCEPTED\" indicates that the snapshot was successfully created, but the repository's dependencies were not updated. \"INVALID\" indicates that the snapshot was malformed.
23    #[serde(rename = "result")]
24    pub result: String,
25    /// A message providing further details about the result, such as why the dependencies were not updated.
26    #[serde(rename = "message")]
27    pub message: String,
28}
29
30impl DependencyGraphCreateRepositorySnapshot201Response {
31    pub fn new(id: i32, created_at: String, result: String, message: String) -> DependencyGraphCreateRepositorySnapshot201Response {
32        DependencyGraphCreateRepositorySnapshot201Response {
33            id,
34            created_at,
35            result,
36            message,
37        }
38    }
39}
40