Struct google_content2::AccountTaxTaxRule
source · pub struct AccountTaxTaxRule {
pub country: Option<String>,
pub rate_percent: Option<String>,
pub shipping_taxed: Option<bool>,
pub location_id: Option<String>,
pub use_global_rate: Option<bool>,
}Expand description
Tax calculation rule to apply in a state or province (USA only).
This type is not used in any activity, and only used as part of another schema.
Fields§
§country: Option<String>Country code in which tax is applicable.
rate_percent: Option<String>Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.
shipping_taxed: Option<bool>If true, shipping charges are also taxed.
location_id: Option<String>State (or province) is which the tax is applicable, described by its location id (also called criteria id).
use_global_rate: Option<bool>Whether the tax rate is taken from a global tax table or specified explicitly.
Trait Implementations§
source§impl Clone for AccountTaxTaxRule
impl Clone for AccountTaxTaxRule
source§fn clone(&self) -> AccountTaxTaxRule
fn clone(&self) -> AccountTaxTaxRule
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 AccountTaxTaxRule
impl Debug for AccountTaxTaxRule
source§impl Default for AccountTaxTaxRule
impl Default for AccountTaxTaxRule
source§fn default() -> AccountTaxTaxRule
fn default() -> AccountTaxTaxRule
Returns the “default value” for a type. Read more
source§impl Deserialize for AccountTaxTaxRule
impl Deserialize for AccountTaxTaxRule
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for AccountTaxTaxRule
impl Serialize for AccountTaxTaxRule
impl Part for AccountTaxTaxRule
Auto Trait Implementations§
impl Freeze for AccountTaxTaxRule
impl RefUnwindSafe for AccountTaxTaxRule
impl Send for AccountTaxTaxRule
impl Sync for AccountTaxTaxRule
impl Unpin for AccountTaxTaxRule
impl UnwindSafe for AccountTaxTaxRule
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more