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 DataroomMember {
    /// 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>,
    /// DataroomDocumentId is the membership id — this document's place in THIS room, distinct from the document id.
    #[serde(rename = "dataroomDocumentId", skip_serializing_if = "Option::is_none")]
    pub dataroom_document_id: Option<String>,
    /// FileKey is the opaque object-storage key the bytes are stored under.
    #[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>,
    /// OrderIndex is the document's place in the viewer's list, null when it was added without one. Unordered documents sort last.
    #[serde(rename = "orderIndex", skip_serializing_if = "Option::is_none")]
    pub order_index: 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 DataroomMember {
    pub fn new() -> DataroomMember {
        DataroomMember {
            content_type: None,
            created_at: None,
            dataroom_document_id: None,
            file_key: None,
            file_size: None,
            id: None,
            name: None,
            num_pages: None,
            order_index: None,
            r#type: None,
            updated_at: None,
        }
    }
}