amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Supply Sources
 *
 * Manage configurations and capabilities of seller supply sources.
 *
 * The version of the OpenAPI document: 2020-07-01
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// AddressWithContact : The address and contact details.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddressWithContact {
    #[serde(rename = "contactDetails", skip_serializing_if = "Option::is_none")]
    pub contact_details: Option<Box<models::supply_sources_2020_07_01::ContactDetails>>,
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<Box<models::supply_sources_2020_07_01::Address>>,
}

impl AddressWithContact {
    /// The address and contact details.
    pub fn new() -> AddressWithContact {
        AddressWithContact {
            contact_details: None,
            address: None,
        }
    }
}