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 DataroomDocument {
    /// ContentType is the mime type recorded at upload, null when none was sent.
    #[serde(rename = "contentType", skip_serializing_if = "Option::is_none")]
    pub content_type: Option<String>,
    /// CreatedAt is when the document was uploaded, in unix milliseconds.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// FileKey is the opaque object-storage key the bytes are stored under. It is scoped to the tenant's own key prefix and is not a URL.
    #[serde(rename = "fileKey", skip_serializing_if = "Option::is_none")]
    pub file_key: Option<String>,
    /// FileSize is the stored byte count, null when it was not recorded.
    #[serde(rename = "fileSize", skip_serializing_if = "Option::is_none")]
    pub file_size: Option<i32>,
    /// ID is the document id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Name is the document's display name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// NumPages is the page count, null when it was not supplied at upload.
    #[serde(rename = "numPages", skip_serializing_if = "Option::is_none")]
    pub num_pages: Option<i32>,
    /// Type is the document's kind, null when it was not recorded.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// UpdatedAt is when the document row last changed, in unix milliseconds.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<i32>,
}

impl DataroomDocument {
    pub fn new() -> DataroomDocument {
        DataroomDocument {
            content_type: None,
            created_at: None,
            file_key: None,
            file_size: None,
            id: None,
            name: None,
            num_pages: None,
            r#type: None,
            updated_at: None,
        }
    }
}