Skip to main content

hanzo_client/models/
gitlab_project_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GitlabProjectView {
16    /// CloneURL is the https remote to clone.
17    #[serde(rename = "cloneUrl", skip_serializing_if = "Option::is_none")]
18    pub clone_url: Option<String>,
19    /// DefaultBranch is the branch a clone lands on (\"main\" when GitLab names none, which is what an empty project reports).
20    #[serde(rename = "defaultBranch", skip_serializing_if = "Option::is_none")]
21    pub default_branch: Option<String>,
22    /// Description is the project's own, empty when it has none.
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// FullName is the namespace path (\"acme/widgets\", \"acme/team/widgets\" for a subgroup) — the string GitLab calls path_with_namespace.
26    #[serde(rename = "fullName", skip_serializing_if = "Option::is_none")]
27    pub full_name: Option<String>,
28    /// HTMLURL is the project's page.
29    #[serde(rename = "htmlUrl", skip_serializing_if = "Option::is_none")]
30    pub html_url: Option<String>,
31    /// Name is the project's path segment (\"widgets\"), not its display name.
32    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
33    pub name: Option<String>,
34    /// Private is true for anything not publicly visible (private or internal).
35    #[serde(rename = "private", skip_serializing_if = "Option::is_none")]
36    pub private: Option<bool>,
37    /// PushedAt is RFC3339 last activity, so a client can sort or say \"2h ago\".
38    #[serde(rename = "pushedAt", skip_serializing_if = "Option::is_none")]
39    pub pushed_at: Option<String>,
40}
41
42impl GitlabProjectView {
43    pub fn new() -> GitlabProjectView {
44        GitlabProjectView {
45            clone_url: None,
46            default_branch: None,
47            description: None,
48            full_name: None,
49            html_url: None,
50            name: None,
51            private: None,
52            pushed_at: None,
53        }
54    }
55}
56