gitea_client/models/
file_links_response.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FileLinksResponse : FileLinksResponse contains the links for a repo's file
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FileLinksResponse {
17    #[serde(rename = "git", skip_serializing_if = "Option::is_none")]
18    pub git: Option<String>,
19    #[serde(rename = "html", skip_serializing_if = "Option::is_none")]
20    pub html: Option<String>,
21    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
22    pub param_self: Option<String>,
23}
24
25impl FileLinksResponse {
26    /// FileLinksResponse contains the links for a repo's file
27    pub fn new() -> FileLinksResponse {
28        FileLinksResponse {
29            git: None,
30            html: None,
31            param_self: None,
32        }
33    }
34}
35