hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * 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/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitlabProjectView {
    /// CloneURL is the https remote to clone.
    #[serde(rename = "cloneUrl", skip_serializing_if = "Option::is_none")]
    pub clone_url: Option<String>,
    /// DefaultBranch is the branch a clone lands on (\"main\" when GitLab names none, which is what an empty project reports).
    #[serde(rename = "defaultBranch", skip_serializing_if = "Option::is_none")]
    pub default_branch: Option<String>,
    /// Description is the project's own, empty when it has none.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// FullName is the namespace path (\"acme/widgets\", \"acme/team/widgets\" for a subgroup) — the string GitLab calls path_with_namespace.
    #[serde(rename = "fullName", skip_serializing_if = "Option::is_none")]
    pub full_name: Option<String>,
    /// HTMLURL is the project's page.
    #[serde(rename = "htmlUrl", skip_serializing_if = "Option::is_none")]
    pub html_url: Option<String>,
    /// Name is the project's path segment (\"widgets\"), not its display name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Private is true for anything not publicly visible (private or internal).
    #[serde(rename = "private", skip_serializing_if = "Option::is_none")]
    pub private: Option<bool>,
    /// PushedAt is RFC3339 last activity, so a client can sort or say \"2h ago\".
    #[serde(rename = "pushedAt", skip_serializing_if = "Option::is_none")]
    pub pushed_at: Option<String>,
}

impl GitlabProjectView {
    pub fn new() -> GitlabProjectView {
        GitlabProjectView {
            clone_url: None,
            default_branch: None,
            description: None,
            full_name: None,
            html_url: None,
            name: None,
            private: None,
            pushed_at: None,
        }
    }
}