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