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 EsignRecipient {
/// Email is where this recipient's signing link is meant to go, lower-cased.
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
/// ID is the recipient id, which is what a field is placed against.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Name is the recipient's display name, empty when none was given.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// ReadStatus is NOT_OPENED until they first open their link, then OPENED.
#[serde(rename = "readStatus", skip_serializing_if = "Option::is_none")]
pub read_status: Option<String>,
/// RejectionReason is why they declined, null unless they did.
#[serde(rename = "rejectionReason", skip_serializing_if = "Option::is_none")]
pub rejection_reason: Option<String>,
/// Role is SIGNER, CC, VIEWER, APPROVER or ASSISTANT. A document waits only for its SIGNERs and APPROVERs before it can seal.
#[serde(rename = "role", skip_serializing_if = "Option::is_none")]
pub role: Option<String>,
/// SendStatus is NOT_SENT until the document goes out, then SENT. A CC recipient is SENT from the moment they are added.
#[serde(rename = "sendStatus", skip_serializing_if = "Option::is_none")]
pub send_status: Option<String>,
/// SignedAt is when they finished or declined, in unix milliseconds; null while neither has happened.
#[serde(rename = "signedAt", skip_serializing_if = "Option::is_none")]
pub signed_at: Option<i32>,
/// SigningOrder is their position in a SEQUENTIAL document, null when they were added without one. A PARALLEL document ignores it.
#[serde(rename = "signingOrder", skip_serializing_if = "Option::is_none")]
pub signing_order: Option<f64>,
/// SigningStatus is NOT_SIGNED, SIGNED or REJECTED. A CC recipient is SIGNED from the moment they are added, because they are never asked.
#[serde(rename = "signingStatus", skip_serializing_if = "Option::is_none")]
pub signing_status: Option<String>,
}
impl EsignRecipient {
pub fn new() -> EsignRecipient {
EsignRecipient {
email: None,
id: None,
name: None,
read_status: None,
rejection_reason: None,
role: None,
send_status: None,
signed_at: None,
signing_order: None,
signing_status: None,
}
}
}