pub struct CreateTaxRate {Show 13 fields
pub jurisdiction_id: Uuid,
pub tax_type: TaxType,
pub product_category: ProductTaxCategory,
pub rate: Decimal,
pub name: String,
pub description: Option<String>,
pub is_compound: bool,
pub priority: i32,
pub threshold_min: Option<Decimal>,
pub threshold_max: Option<Decimal>,
pub fixed_amount: Option<Decimal>,
pub effective_from: NaiveDate,
pub effective_to: Option<NaiveDate>,
}Expand description
Create a new tax rate
Fields§
§jurisdiction_id: Uuid§tax_type: TaxType§product_category: ProductTaxCategory§rate: Decimal§name: String§description: Option<String>§is_compound: bool§priority: i32§threshold_min: Option<Decimal>§threshold_max: Option<Decimal>§fixed_amount: Option<Decimal>§effective_from: NaiveDate§effective_to: Option<NaiveDate>Trait Implementations§
Source§impl Clone for CreateTaxRate
impl Clone for CreateTaxRate
Source§fn clone(&self) -> CreateTaxRate
fn clone(&self) -> CreateTaxRate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateTaxRate
impl Debug for CreateTaxRate
Source§impl Default for CreateTaxRate
impl Default for CreateTaxRate
Source§fn default() -> CreateTaxRate
fn default() -> CreateTaxRate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateTaxRate
impl<'de> Deserialize<'de> for CreateTaxRate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateTaxRate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateTaxRate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateTaxRate
impl Serialize for CreateTaxRate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreateTaxRate
impl RefUnwindSafe for CreateTaxRate
impl Send for CreateTaxRate
impl Sync for CreateTaxRate
impl Unpin for CreateTaxRate
impl UnsafeUnpin for CreateTaxRate
impl UnwindSafe for CreateTaxRate
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