gitea_rs/models/
file_delete_response.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// FileDeleteResponse : FileDeleteResponse contains information about a repo's file that was deleted
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct FileDeleteResponse {
17    #[serde(rename = "commit", skip_serializing_if = "Option::is_none")]
18    pub commit: Option<Box<crate::models::FileCommitResponse>>,
19    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
20    pub content: Option<serde_json::Value>,
21    #[serde(rename = "verification", skip_serializing_if = "Option::is_none")]
22    pub verification: Option<Box<crate::models::PayloadCommitVerification>>,
23}
24
25impl FileDeleteResponse {
26    /// FileDeleteResponse contains information about a repo's file that was deleted
27    pub fn new() -> FileDeleteResponse {
28        FileDeleteResponse {
29            commit: None,
30            content: None,
31            verification: None,
32        }
33    }
34}
35
36