pub struct CreateCheckoutSessionAutomaticTax {
pub enabled: bool,
pub liability: Option<CreateCheckoutSessionAutomaticTaxLiability>,
}
Fields§
§enabled: bool
Set to true to enable automatic taxes.
liability: Option<CreateCheckoutSessionAutomaticTaxLiability>
The account that’s liable for tax.
If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionAutomaticTax
impl Clone for CreateCheckoutSessionAutomaticTax
source§fn clone(&self) -> CreateCheckoutSessionAutomaticTax
fn clone(&self) -> CreateCheckoutSessionAutomaticTax
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 Default for CreateCheckoutSessionAutomaticTax
impl Default for CreateCheckoutSessionAutomaticTax
source§fn default() -> CreateCheckoutSessionAutomaticTax
fn default() -> CreateCheckoutSessionAutomaticTax
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionAutomaticTax
impl<'de> Deserialize<'de> for CreateCheckoutSessionAutomaticTax
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
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionAutomaticTax
impl RefUnwindSafe for CreateCheckoutSessionAutomaticTax
impl Send for CreateCheckoutSessionAutomaticTax
impl Sync for CreateCheckoutSessionAutomaticTax
impl Unpin for CreateCheckoutSessionAutomaticTax
impl UnwindSafe for CreateCheckoutSessionAutomaticTax
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