netlify_rust/models/
repo_info.rs

1/*
2 * Netlify's API documentation
3 *
4 * Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.  This document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).  Additionally, we have two API clients for your convenience: - [Go Client](https://github.com/netlify/open-api#go-client) - [JS Client](https://github.com/netlify/js-client)
5 *
6 * The version of the OpenAPI document: 2.5.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RepoInfo {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i32>,
18    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
19    pub provider: Option<String>,
20    #[serde(rename = "deploy_key_id", skip_serializing_if = "Option::is_none")]
21    pub deploy_key_id: Option<String>,
22    #[serde(rename = "repo_path", skip_serializing_if = "Option::is_none")]
23    pub repo_path: Option<String>,
24    #[serde(rename = "repo_branch", skip_serializing_if = "Option::is_none")]
25    pub repo_branch: Option<String>,
26    #[serde(rename = "dir", skip_serializing_if = "Option::is_none")]
27    pub dir: Option<String>,
28    #[serde(rename = "functions_dir", skip_serializing_if = "Option::is_none")]
29    pub functions_dir: Option<String>,
30    #[serde(rename = "cmd", skip_serializing_if = "Option::is_none")]
31    pub cmd: Option<String>,
32    #[serde(rename = "allowed_branches", skip_serializing_if = "Option::is_none")]
33    pub allowed_branches: Option<Vec<String>>,
34    #[serde(rename = "public_repo", skip_serializing_if = "Option::is_none")]
35    pub public_repo: Option<bool>,
36    #[serde(rename = "private_logs", skip_serializing_if = "Option::is_none")]
37    pub private_logs: Option<bool>,
38    #[serde(rename = "repo_url", skip_serializing_if = "Option::is_none")]
39    pub repo_url: Option<String>,
40    #[serde(rename = "env", skip_serializing_if = "Option::is_none")]
41    pub env: Option<::std::collections::HashMap<String, String>>,
42    #[serde(rename = "installation_id", skip_serializing_if = "Option::is_none")]
43    pub installation_id: Option<i32>,
44    #[serde(rename = "stop_builds", skip_serializing_if = "Option::is_none")]
45    pub stop_builds: Option<bool>,
46}
47
48impl RepoInfo {
49    pub fn new() -> RepoInfo {
50        RepoInfo {
51            id: None,
52            provider: None,
53            deploy_key_id: None,
54            repo_path: None,
55            repo_branch: None,
56            dir: None,
57            functions_dir: None,
58            cmd: None,
59            allowed_branches: None,
60            public_repo: None,
61            private_logs: None,
62            repo_url: None,
63            env: None,
64            installation_id: None,
65            stop_builds: None,
66        }
67    }
68}
69
70