bitwarden_api_api/models/
tax_information_request_model.rs
use serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaxInformationRequestModel {
#[serde(rename = "country")]
pub country: String,
#[serde(rename = "postalCode")]
pub postal_code: String,
#[serde(rename = "taxId", skip_serializing_if = "Option::is_none")]
pub tax_id: Option<String>,
}
impl TaxInformationRequestModel {
pub fn new(country: String, postal_code: String) -> TaxInformationRequestModel {
TaxInformationRequestModel {
country,
postal_code,
tax_id: None,
}
}
}