gitea_client/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.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FileDeleteResponse : FileDeleteResponse contains information about a repo's file that was deleted
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FileDeleteResponse {
17    #[serde(rename = "commit", skip_serializing_if = "Option::is_none")]
18    pub commit: Option<Box<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<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