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 ContactReq {
    /// City is where the person is based.
    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// CompanyID links the contact to one of the org's companies.
    #[serde(rename = "companyId", skip_serializing_if = "Option::is_none")]
    pub company_id: Option<String>,
    /// Email is the person's email address.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// FirstName is the person's given name.
    #[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    /// ID names the contact to update and comes from the path. A create ignores it: the server mints the id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// JobTitle is the person's role at their company.
    #[serde(rename = "jobTitle", skip_serializing_if = "Option::is_none")]
    pub job_title: Option<String>,
    /// LastName is the person's family name.
    #[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
    pub last_name: Option<String>,
    /// Linkedin is the person's LinkedIn URL.
    #[serde(rename = "linkedinLink", skip_serializing_if = "Option::is_none")]
    pub linkedin_link: Option<String>,
    /// Phone is the person's phone number.
    #[serde(rename = "phone", skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    /// XLink is the person's X (Twitter) URL.
    #[serde(rename = "xLink", skip_serializing_if = "Option::is_none")]
    pub x_link: Option<String>,
}

impl ContactReq {
    pub fn new() -> ContactReq {
        ContactReq {
            city: None,
            company_id: None,
            email: None,
            first_name: None,
            id: None,
            job_title: None,
            last_name: None,
            linkedin_link: None,
            phone: None,
            x_link: None,
        }
    }
}