/* * Gitea API * * This documentation describes the Gitea API. * * The version of the OpenAPI document: 1.22.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::{Deserialize, Serialize}; /// GitTreeResponse : GitTreeResponse returns a git tree #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct GitTreeResponse { #[serde(rename = "page", skip_serializing_if = "Option::is_none")] pub page: Option, #[serde(rename = "sha", skip_serializing_if = "Option::is_none")] pub sha: Option, #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")] pub total_count: Option, #[serde(rename = "tree", skip_serializing_if = "Option::is_none")] pub tree: Option>, #[serde(rename = "truncated", skip_serializing_if = "Option::is_none")] pub truncated: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } impl GitTreeResponse { /// GitTreeResponse returns a git tree pub fn new() -> GitTreeResponse { GitTreeResponse { page: None, sha: None, total_count: None, tree: None, truncated: None, url: None, } } }