hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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,
        }
    }
}