pub struct CreateTaxRateInput {Show 13 fields
pub jurisdiction_id: String,
pub tax_type: Option<String>,
pub product_category: Option<String>,
pub rate: f64,
pub name: String,
pub description: Option<String>,
pub is_compound: Option<bool>,
pub priority: Option<i32>,
pub threshold_min: Option<f64>,
pub threshold_max: Option<f64>,
pub fixed_amount: Option<f64>,
pub effective_from: String,
pub effective_to: Option<String>,
}Fields§
§jurisdiction_id: String§tax_type: Option<String>§product_category: Option<String>§rate: f64§name: String§description: Option<String>§is_compound: Option<bool>§priority: Option<i32>§threshold_min: Option<f64>§threshold_max: Option<f64>§fixed_amount: Option<f64>§effective_from: String§effective_to: Option<String>Trait Implementations§
Source§impl Clone for CreateTaxRateInput
impl Clone for CreateTaxRateInput
Source§fn clone(&self) -> CreateTaxRateInput
fn clone(&self) -> CreateTaxRateInput
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 Default for CreateTaxRateInput
impl Default for CreateTaxRateInput
Source§fn default() -> CreateTaxRateInput
fn default() -> CreateTaxRateInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateTaxRateInput
impl<'de> Deserialize<'de> for CreateTaxRateInput
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 FromNapiValue for CreateTaxRateInput
impl FromNapiValue for CreateTaxRateInput
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 CreateTaxRateInput
impl Serialize for CreateTaxRateInput
Source§impl ToNapiValue for CreateTaxRateInput
impl ToNapiValue for CreateTaxRateInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CreateTaxRateInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CreateTaxRateInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CreateTaxRateInput
impl TypeName for CreateTaxRateInput
Source§impl ValidateNapiValue for CreateTaxRateInput
impl ValidateNapiValue for CreateTaxRateInput
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 CreateTaxRateInput
impl RefUnwindSafe for CreateTaxRateInput
impl Send for CreateTaxRateInput
impl Sync for CreateTaxRateInput
impl Unpin for CreateTaxRateInput
impl UnsafeUnpin for CreateTaxRateInput
impl UnwindSafe for CreateTaxRateInput
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