36 lines
1.1 KiB
Rust
36 lines
1.1 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};
|
||
|
|
||
|
/// 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,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|