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 PullView {
    /// Author is the user who opened it; empty for a caller with no user.
    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
    pub author: Option<String>,
    /// Base is the branch the work is proposed into.
    #[serde(rename = "base", skip_serializing_if = "Option::is_none")]
    pub base: Option<String>,
    /// Body is the longer description; empty when none was given.
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    /// CreatedAt is RFC 3339 UTC.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// Head is the branch holding the work.
    #[serde(rename = "head", skip_serializing_if = "Option::is_none")]
    pub head: Option<String>,
    /// MergedRev is what base points at now that the merge landed. Empty while the proposal is open.
    #[serde(rename = "mergedRev", skip_serializing_if = "Option::is_none")]
    pub merged_rev: Option<String>,
    /// Number is the proposal's per-repo handle, dense from 1.
    #[serde(rename = "number", skip_serializing_if = "Option::is_none")]
    pub number: Option<i32>,
    /// Repo is the repository the proposal belongs to.
    #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
    pub repo: Option<String>,
    /// State is \"open\" or \"merged\".
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    /// Title is the one-line summary.
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// UpdatedAt is RFC 3339 UTC.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
}

impl PullView {
    pub fn new() -> PullView {
        PullView {
            author: None,
            base: None,
            body: None,
            created_at: None,
            head: None,
            merged_rev: None,
            number: None,
            repo: None,
            state: None,
            title: None,
            updated_at: None,
        }
    }
}