Skip to main content

hanzo_client/models/
document_summary.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 DocumentSummary {
16    /// Category is the template's category: formation, equity, ops or sales.
17    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
18    pub category: Option<String>,
19    /// CreatedAt is when the document was generated, in unix seconds.
20    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<i32>,
22    /// EsignProvider names the e-signature provider handling it, absent until a signature has been requested.
23    #[serde(rename = "esignProvider", skip_serializing_if = "Option::is_none")]
24    pub esign_provider: Option<String>,
25    /// ID is the document's server-minted handle, \"doc_\"-prefixed.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28    /// SignedAt is when the provider reported completion, in unix seconds. Absent until then.
29    #[serde(rename = "signedAt", skip_serializing_if = "Option::is_none")]
30    pub signed_at: Option<i32>,
31    /// Status is the lifecycle state: draft, out_for_signature, signed or voided. There is deliberately no \"legally valid\" state — that is counsel's determination, not the platform's.
32    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
33    pub status: Option<String>,
34    /// TemplateID is the template it was rendered from.
35    #[serde(rename = "templateId", skip_serializing_if = "Option::is_none")]
36    pub template_id: Option<String>,
37    /// TemplateVersion is WHICH version of that template rendered it, so the document is reproducible and auditable.
38    #[serde(rename = "templateVersion", skip_serializing_if = "Option::is_none")]
39    pub template_version: Option<i32>,
40    /// Title is the document's title, inherited from the template.
41    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
42    pub title: Option<String>,
43    /// UpdatedAt is when it last changed, in unix seconds.
44    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
45    pub updated_at: Option<i32>,
46}
47
48impl DocumentSummary {
49    pub fn new() -> DocumentSummary {
50        DocumentSummary {
51            category: None,
52            created_at: None,
53            esign_provider: None,
54            id: None,
55            signed_at: None,
56            status: None,
57            template_id: None,
58            template_version: None,
59            title: None,
60            updated_at: None,
61        }
62    }
63}
64