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 TrustItemView {
    /// Attester is who vouched for it: self or auditor.
    #[serde(rename = "attester", skip_serializing_if = "Option::is_none")]
    pub attester: Option<String>,
    /// Body is the item's content for the kinds that are text rather than a file.
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    /// CreatedAt is when it was published, in unix milliseconds.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// Document is the data-room document holding its bytes, empty when it has none.
    #[serde(rename = "document", skip_serializing_if = "Option::is_none")]
    pub document: Option<String>,
    /// Framework is the standard it speaks to, when it speaks to one.
    #[serde(rename = "framework", skip_serializing_if = "Option::is_none")]
    pub framework: Option<String>,
    /// ID addresses the item.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Kind is one of report, letter, policy, questionnaire, subprocessor, article or update — the closed set the public centre knows how to draw.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// Name is the label the centre lists it under.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Retired is whether it has been withdrawn. A retired item is absent from the public centre and cannot be granted; it is kept because a grant already made over it is part of the record.
    #[serde(rename = "retired", skip_serializing_if = "Option::is_none")]
    pub retired: Option<bool>,
    /// Summary is a line about it.
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    /// Tier is public or gated. Gated is the default and an auditor-signed item can only ever be gated.
    #[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
    pub tier: Option<String>,
    /// UpdatedAt is when it last changed, in unix milliseconds.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<i32>,
}

impl TrustItemView {
    pub fn new() -> TrustItemView {
        TrustItemView {
            attester: None,
            body: None,
            created_at: None,
            document: None,
            framework: None,
            id: None,
            kind: None,
            name: None,
            retired: None,
            summary: None,
            tier: None,
            updated_at: None,
        }
    }
}