gitbundle_sdk/models/
repo_file_content.rs1use 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}