gitbundle_sdk/models/
repo_dir_content.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.3.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RepoDirContent {
17    #[serde(rename = "entries")]
18    pub entries: Vec<models::RepoContentInfo>,
19}
20
21impl RepoDirContent {
22    pub fn new(entries: Vec<models::RepoContentInfo>) -> RepoDirContent {
23        RepoDirContent { entries }
24    }
25}