Struct stripe::generated::billing::credit_note::CreditNoteTaxAmount
source · pub struct CreditNoteTaxAmount {
pub amount: i64,
pub inclusive: bool,
pub tax_rate: Expandable<TaxRate>,
pub taxability_reason: Option<CreditNoteTaxAmountTaxabilityReason>,
pub taxable_amount: Option<i64>,
}
Fields§
§amount: i64
The amount, in cents (or local equivalent), of the tax.
inclusive: bool
Whether this tax amount is inclusive or exclusive.
tax_rate: Expandable<TaxRate>
The tax rate that was applied to get this tax amount.
taxability_reason: Option<CreditNoteTaxAmountTaxabilityReason>
The reasoning behind this tax, for example, if the product is tax exempt.
The possible values for this field may be extended as new tax rules are supported.
taxable_amount: Option<i64>
The amount on which tax is calculated, in cents (or local equivalent).
Trait Implementations§
source§impl Clone for CreditNoteTaxAmount
impl Clone for CreditNoteTaxAmount
source§fn clone(&self) -> CreditNoteTaxAmount
fn clone(&self) -> CreditNoteTaxAmount
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 CreditNoteTaxAmount
impl Debug for CreditNoteTaxAmount
source§impl Default for CreditNoteTaxAmount
impl Default for CreditNoteTaxAmount
source§fn default() -> CreditNoteTaxAmount
fn default() -> CreditNoteTaxAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreditNoteTaxAmount
impl<'de> Deserialize<'de> for CreditNoteTaxAmount
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 RefUnwindSafe for CreditNoteTaxAmount
impl Send for CreditNoteTaxAmount
impl Sync for CreditNoteTaxAmount
impl Unpin for CreditNoteTaxAmount
impl UnwindSafe for CreditNoteTaxAmount
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