Skip to main content

hanzo_client/models/
document_view.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 DocumentView {
16    /// Body is the rendered document. It is sealed at rest and returned only to the owning org. When the template is counsel-review it opens with the counsel notice, which the engine prepends and no caller can suppress.
17    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
18    pub body: Option<String>,
19    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
20    pub category: Option<String>,
21    /// ContentType is the rendered body's media type — text/markdown.
22    #[serde(rename = "contentType", skip_serializing_if = "Option::is_none")]
23    pub content_type: Option<String>,
24    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
25    pub created_at: Option<i32>,
26    #[serde(rename = "esignProvider", skip_serializing_if = "Option::is_none")]
27    pub esign_provider: Option<String>,
28    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
29    pub id: Option<String>,
30    #[serde(rename = "signedAt", skip_serializing_if = "Option::is_none")]
31    pub signed_at: Option<i32>,
32    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
33    pub status: Option<String>,
34    #[serde(rename = "templateId", skip_serializing_if = "Option::is_none")]
35    pub template_id: Option<String>,
36    #[serde(rename = "templateVersion", skip_serializing_if = "Option::is_none")]
37    pub template_version: Option<i32>,
38    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
39    pub title: Option<String>,
40    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
41    pub updated_at: Option<i32>,
42}
43
44impl DocumentView {
45    pub fn new() -> DocumentView {
46        DocumentView {
47            body: None,
48            category: None,
49            content_type: None,
50            created_at: None,
51            esign_provider: None,
52            id: None,
53            signed_at: None,
54            status: None,
55            template_id: None,
56            template_version: None,
57            title: None,
58            updated_at: None,
59        }
60    }
61}
62