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
65
66
67
/*
* 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 EsignField {
/// CustomText is the value a non-signature field was filled with, empty until it is. A signature's value is not here: it is stored separately and rendered onto the page at sealing.
#[serde(rename = "customText", skip_serializing_if = "Option::is_none")]
pub custom_text: Option<String>,
#[serde(rename = "fieldMeta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub field_meta: Option<Option<serde_json::Value>>,
/// Height is the field's height, -1 when the renderer is to choose one.
#[serde(rename = "height", skip_serializing_if = "Option::is_none")]
pub height: Option<f64>,
/// ID is the field id.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Inserted is whether this field has been filled in.
#[serde(rename = "inserted", skip_serializing_if = "Option::is_none")]
pub inserted: Option<bool>,
/// Page is the 1-based page the field sits on.
#[serde(rename = "page", skip_serializing_if = "Option::is_none")]
pub page: Option<f64>,
/// PositionX is the field's horizontal position on that page.
#[serde(rename = "positionX", skip_serializing_if = "Option::is_none")]
pub position_x: Option<f64>,
/// PositionY is the field's vertical position on that page.
#[serde(rename = "positionY", skip_serializing_if = "Option::is_none")]
pub position_y: Option<f64>,
/// RecipientID is who must fill this field. It is absent on a signer's own view of a document, where every field returned is already theirs.
#[serde(rename = "recipientId", skip_serializing_if = "Option::is_none")]
pub recipient_id: Option<String>,
/// Type is what the field collects — SIGNATURE, DATE, NAME, EMAIL, TEXT and the rest.
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<String>,
/// Width is the field's width, -1 when the renderer is to choose one.
#[serde(rename = "width", skip_serializing_if = "Option::is_none")]
pub width: Option<f64>,
}
impl EsignField {
pub fn new() -> EsignField {
EsignField {
custom_text: None,
field_meta: None,
height: None,
id: None,
inserted: None,
page: None,
position_x: None,
position_y: None,
recipient_id: None,
r#type: None,
width: None,
}
}
}