gitea-rs/crates/gitea-client/src/models/files_response.rs

36 lines
1.1 KiB
Rust
Raw Normal View History

/*
* 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};
/// FilesResponse : FilesResponse contains information about multiple files from a repo
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FilesResponse {
#[serde(rename = "commit", skip_serializing_if = "Option::is_none")]
pub commit: Option<Box<models::FileCommitResponse>>,
#[serde(rename = "files", skip_serializing_if = "Option::is_none")]
pub files: Option<Vec<models::ContentsResponse>>,
#[serde(rename = "verification", skip_serializing_if = "Option::is_none")]
pub verification: Option<Box<models::PayloadCommitVerification>>,
}
impl FilesResponse {
/// FilesResponse contains information about multiple files from a repo
pub fn new() -> FilesResponse {
FilesResponse {
commit: None,
files: None,
verification: None,
}
}
}