Struct google_content2::api::ProductTax
source · pub struct ProductTax {
pub country: Option<String>,
pub location_id: Option<i64>,
pub postal_code: Option<String>,
pub rate: Option<f64>,
pub region: Option<String>,
pub tax_ship: Option<bool>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§country: Option<String>
The country within which the item is taxed, specified as a CLDR territory code.
location_id: Option<i64>
The numeric ID of a location that the tax rate applies to as defined in the AdWords API.
postal_code: Option<String>
The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
rate: Option<f64>
The percentage of tax rate that applies to the item price.
region: Option<String>
The geographic region to which the tax rate applies.
tax_ship: Option<bool>
Should be set to true if tax is charged on shipping.
Trait Implementations§
source§impl Clone for ProductTax
impl Clone for ProductTax
source§fn clone(&self) -> ProductTax
fn clone(&self) -> ProductTax
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProductTax
impl Debug for ProductTax
source§impl Default for ProductTax
impl Default for ProductTax
source§fn default() -> ProductTax
fn default() -> ProductTax
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ProductTax
impl<'de> Deserialize<'de> for ProductTax
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ProductTax
impl Serialize for ProductTax
impl Part for ProductTax
Auto Trait Implementations§
impl RefUnwindSafe for ProductTax
impl Send for ProductTax
impl Sync for ProductTax
impl Unpin for ProductTax
impl UnwindSafe for ProductTax
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more