gitea-rs/crates/gitea-client/src/models/git_tree_response.rs
kjuulh e78d07db33
feat: find another name
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-09-23 22:29:11 +02:00

45 lines
1.3 KiB
Rust

/*
* 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<i64>,
#[serde(rename = "sha", skip_serializing_if = "Option::is_none")]
pub sha: Option<String>,
#[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
pub total_count: Option<i64>,
#[serde(rename = "tree", skip_serializing_if = "Option::is_none")]
pub tree: Option<Vec<models::GitEntry>>,
#[serde(rename = "truncated", skip_serializing_if = "Option::is_none")]
pub truncated: Option<bool>,
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
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,
}
}
}