gitea_rs/models/
git_blob_response.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// GitBlobResponse : GitBlobResponse represents a git blob
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct GitBlobResponse {
17    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
18    pub content: Option<String>,
19    #[serde(rename = "encoding", skip_serializing_if = "Option::is_none")]
20    pub encoding: Option<String>,
21    #[serde(rename = "sha", skip_serializing_if = "Option::is_none")]
22    pub sha: Option<String>,
23    #[serde(rename = "size", skip_serializing_if = "Option::is_none")]
24    pub size: Option<i64>,
25    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
26    pub url: Option<String>,
27}
28
29impl GitBlobResponse {
30    /// GitBlobResponse represents a git blob
31    pub fn new() -> GitBlobResponse {
32        GitBlobResponse {
33            content: None,
34            encoding: None,
35            sha: None,
36            size: None,
37            url: None,
38        }
39    }
40}
41
42