pub struct LineItemTaxOutput {
pub line_item_id: String,
pub taxable_amount: f64,
pub tax_amount: f64,
pub effective_rate: f64,
pub is_exempt: bool,
pub exemption_reason: Option<String>,
pub tax_details: Vec<TaxDetailOutput>,
}Fields§
§line_item_id: String§taxable_amount: f64§tax_amount: f64§effective_rate: f64§is_exempt: bool§exemption_reason: Option<String>§tax_details: Vec<TaxDetailOutput>Trait Implementations§
Source§impl Clone for LineItemTaxOutput
impl Clone for LineItemTaxOutput
Source§fn clone(&self) -> LineItemTaxOutput
fn clone(&self) -> LineItemTaxOutput
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 LineItemTaxOutput
impl<'de> Deserialize<'de> for LineItemTaxOutput
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<LineItemTax> for LineItemTaxOutput
impl From<LineItemTax> for LineItemTaxOutput
Source§fn from(t: LineItemTax) -> Self
fn from(t: LineItemTax) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for LineItemTaxOutput
impl FromNapiValue for LineItemTaxOutput
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 LineItemTaxOutput
impl Serialize for LineItemTaxOutput
Source§impl ToNapiValue for LineItemTaxOutput
impl ToNapiValue for LineItemTaxOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: LineItemTaxOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: LineItemTaxOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for LineItemTaxOutput
impl TypeName for LineItemTaxOutput
Source§impl ValidateNapiValue for LineItemTaxOutput
impl ValidateNapiValue for LineItemTaxOutput
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 LineItemTaxOutput
impl RefUnwindSafe for LineItemTaxOutput
impl Send for LineItemTaxOutput
impl Sync for LineItemTaxOutput
impl Unpin for LineItemTaxOutput
impl UnsafeUnpin for LineItemTaxOutput
impl UnwindSafe for LineItemTaxOutput
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