Skip to main content

gitbundle_sdk/models/
repo_file_content.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
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 RepoFileContent {
17    #[serde(rename = "data")]
18    pub data: String,
19    #[serde(rename = "encoding")]
20    pub encoding: models::RepoFileContentEncodingType,
21    #[serde(rename = "size")]
22    pub size: i32,
23}
24
25impl RepoFileContent {
26    pub fn new(
27        data: String,
28        encoding: models::RepoFileContentEncodingType,
29        size: i32,
30    ) -> RepoFileContent {
31        RepoFileContent {
32            data,
33            encoding,
34            size,
35        }
36    }
37}