pub struct AccountTaxTaxRule {
pub country: Option<String>,
pub location_id: Option<u64>,
pub rate_percent: Option<String>,
pub shipping_taxed: Option<bool>,
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.
location_id: Option<u64>Required. State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).
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.
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 duplicate 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<'de> Deserialize<'de> for AccountTaxTaxRule
impl<'de> Deserialize<'de> for AccountTaxTaxRule
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 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