gitea_client/models/
git_object.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
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 GitObject {
16    #[serde(rename = "sha", skip_serializing_if = "Option::is_none")]
17    pub sha: Option<String>,
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<String>,
20    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
21    pub url: Option<String>,
22}
23
24impl GitObject {
25    pub fn new() -> GitObject {
26        GitObject {
27            sha: None,
28            r#type: None,
29            url: None,
30        }
31    }
32}
33