gitea_client/models/
contents_ext_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ContentsExtResponse {
16 #[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