Skip to main content

gitea_client/models/
contents_ext_response.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.25.2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ContentsExtResponse {
16    /// DirContents contains directory listing when the path represents a directory
17    #[serde(rename = "dir_contents", skip_serializing_if = "Option::is_none")]
18    pub dir_contents: Option<Vec<models::ContentsResponse>>,
19    #[serde(rename = "file_contents", skip_serializing_if = "Option::is_none")]
20    pub file_contents: Option<Box<models::ContentsResponse>>,
21}
22
23impl ContentsExtResponse {
24    pub fn new() -> ContentsExtResponse {
25        ContentsExtResponse {
26            dir_contents: None,
27            file_contents: None,
28        }
29    }
30}
31