Skip to main content

hanzo_client/models/
dataroom_document.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DataroomDocument {
16    /// ContentType is the mime type recorded at upload, null when none was sent.
17    #[serde(rename = "contentType", skip_serializing_if = "Option::is_none")]
18    pub content_type: Option<String>,
19    /// CreatedAt is when the document was uploaded, in unix milliseconds.
20    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<i32>,
22    /// 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.
23    #[serde(rename = "fileKey", skip_serializing_if = "Option::is_none")]
24    pub file_key: Option<String>,
25    /// FileSize is the stored byte count, null when it was not recorded.
26    #[serde(rename = "fileSize", skip_serializing_if = "Option::is_none")]
27    pub file_size: Option<i32>,
28    /// ID is the document id.
29    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
30    pub id: Option<String>,
31    /// Name is the document's display name.
32    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
33    pub name: Option<String>,
34    /// NumPages is the page count, null when it was not supplied at upload.
35    #[serde(rename = "numPages", skip_serializing_if = "Option::is_none")]
36    pub num_pages: Option<i32>,
37    /// Type is the document's kind, null when it was not recorded.
38    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
39    pub r#type: Option<String>,
40    /// UpdatedAt is when the document row last changed, in unix milliseconds.
41    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
42    pub updated_at: Option<i32>,
43}
44
45impl DataroomDocument {
46    pub fn new() -> DataroomDocument {
47        DataroomDocument {
48            content_type: None,
49            created_at: None,
50            file_key: None,
51            file_size: None,
52            id: None,
53            name: None,
54            num_pages: None,
55            r#type: None,
56            updated_at: None,
57        }
58    }
59}
60