Skip to main content

hanzo_client/models/
commit_json.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
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 CommitJson {
16    /// AuthorEmail is the commit author's email.
17    #[serde(rename = "authorEmail", skip_serializing_if = "Option::is_none")]
18    pub author_email: Option<String>,
19    /// AuthorName is the commit author's name.
20    #[serde(rename = "authorName", skip_serializing_if = "Option::is_none")]
21    pub author_name: Option<String>,
22    /// Date is the author date, RFC 3339 UTC.
23    #[serde(rename = "date", skip_serializing_if = "Option::is_none")]
24    pub date: Option<String>,
25    /// Message is the commit's SUBJECT — its first line only.
26    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
27    pub message: Option<String>,
28    /// SHA is the full commit hash.
29    #[serde(rename = "sha", skip_serializing_if = "Option::is_none")]
30    pub sha: Option<String>,
31    /// ShortSHA is the abbreviated hash a UI displays.
32    #[serde(rename = "shortSha", skip_serializing_if = "Option::is_none")]
33    pub short_sha: Option<String>,
34}
35
36impl CommitJson {
37    pub fn new() -> CommitJson {
38        CommitJson {
39            author_email: None,
40            author_name: None,
41            date: None,
42            message: None,
43            sha: None,
44            short_sha: None,
45        }
46    }
47}
48