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 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,
        }
    }
}