pub struct TaxCalculationOutput {
pub id: String,
pub total_tax: f64,
pub subtotal: f64,
pub total: f64,
pub shipping_tax: f64,
pub tax_breakdown: Vec<TaxBreakdownOutput>,
pub line_item_taxes: Vec<LineItemTaxOutput>,
pub exemptions_applied: bool,
pub exemption_details: Option<ExemptionDetailsOutput>,
pub jurisdictions: Vec<JurisdictionSummaryOutput>,
pub calculated_at: String,
pub is_estimate: bool,
}Fields§
§id: String§total_tax: f64§subtotal: f64§total: f64§shipping_tax: f64§tax_breakdown: Vec<TaxBreakdownOutput>§line_item_taxes: Vec<LineItemTaxOutput>§exemptions_applied: bool§exemption_details: Option<ExemptionDetailsOutput>§jurisdictions: Vec<JurisdictionSummaryOutput>§calculated_at: String§is_estimate: boolTrait Implementations§
Source§impl Clone for TaxCalculationOutput
impl Clone for TaxCalculationOutput
Source§fn clone(&self) -> TaxCalculationOutput
fn clone(&self) -> TaxCalculationOutput
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<'de> Deserialize<'de> for TaxCalculationOutput
impl<'de> Deserialize<'de> for TaxCalculationOutput
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 From<TaxCalculationResult> for TaxCalculationOutput
impl From<TaxCalculationResult> for TaxCalculationOutput
Source§fn from(r: TaxCalculationResult) -> Self
fn from(r: TaxCalculationResult) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for TaxCalculationOutput
impl FromNapiValue for TaxCalculationOutput
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl Serialize for TaxCalculationOutput
impl Serialize for TaxCalculationOutput
Source§impl ToNapiValue for TaxCalculationOutput
impl ToNapiValue for TaxCalculationOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: TaxCalculationOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: TaxCalculationOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for TaxCalculationOutput
impl TypeName for TaxCalculationOutput
Source§impl ValidateNapiValue for TaxCalculationOutput
impl ValidateNapiValue for TaxCalculationOutput
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for TaxCalculationOutput
impl RefUnwindSafe for TaxCalculationOutput
impl Send for TaxCalculationOutput
impl Sync for TaxCalculationOutput
impl Unpin for TaxCalculationOutput
impl UnsafeUnpin for TaxCalculationOutput
impl UnwindSafe for TaxCalculationOutput
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