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 TrustAskView {
    /// CreatedAt is when the ask arrived, in unix milliseconds.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// DecidedAt is when it was answered, in unix milliseconds; 0 while open.
    #[serde(rename = "decidedAt", skip_serializing_if = "Option::is_none")]
    pub decided_at: Option<i32>,
    /// DecidedBy is who answered it.
    #[serde(rename = "decidedBy", skip_serializing_if = "Option::is_none")]
    pub decided_by: Option<String>,
    /// Email is the address that asked, as stated and UNVERIFIED — it names a party and proves nothing, which is why the grant is addressed to it rather than trusting it.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// ExpiresAt is when a granted ask closes, in unix milliseconds.
    #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
    pub expires_at: Option<i32>,
    /// ID is the request's id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Item is the item asked for, empty when the whole released tier was asked for.
    #[serde(rename = "item", skip_serializing_if = "Option::is_none")]
    pub item: Option<String>,
    /// Link is the share link a granted ask became.
    #[serde(rename = "link", skip_serializing_if = "Option::is_none")]
    pub link: Option<String>,
    /// Nda is the text this party accepted, verbatim as it stood when they accepted.
    #[serde(rename = "nda", skip_serializing_if = "Option::is_none")]
    pub nda: Option<String>,
    /// Note is what the decider wrote when refusing.
    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// Party is the company the asker stated.
    #[serde(rename = "party", skip_serializing_if = "Option::is_none")]
    pub party: Option<String>,
    /// Reason is why they said they want it.
    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    /// State is open, granted or refused.
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
}

impl TrustAskView {
    pub fn new() -> TrustAskView {
        TrustAskView {
            created_at: None,
            decided_at: None,
            decided_by: None,
            email: None,
            expires_at: None,
            id: None,
            item: None,
            link: None,
            nda: None,
            note: None,
            party: None,
            reason: None,
            state: None,
        }
    }
}