pub struct CreateTaxExemption {
pub customer_id: Uuid,
pub exemption_type: ExemptionType,
pub certificate_number: Option<String>,
pub issuing_authority: Option<String>,
pub jurisdiction_ids: Vec<Uuid>,
pub exempt_categories: Vec<ProductTaxCategory>,
pub effective_from: NaiveDate,
pub expires_at: Option<NaiveDate>,
pub notes: Option<String>,
}Expand description
Create a tax exemption for a customer
Fields§
§customer_id: Uuid§exemption_type: ExemptionType§certificate_number: Option<String>§jurisdiction_ids: Vec<Uuid>§exempt_categories: Vec<ProductTaxCategory>§effective_from: NaiveDate§expires_at: Option<NaiveDate>§notes: Option<String>Trait Implementations§
Source§impl Clone for CreateTaxExemption
impl Clone for CreateTaxExemption
Source§fn clone(&self) -> CreateTaxExemption
fn clone(&self) -> CreateTaxExemption
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 CreateTaxExemption
impl Debug for CreateTaxExemption
Source§impl<'de> Deserialize<'de> for CreateTaxExemption
impl<'de> Deserialize<'de> for CreateTaxExemption
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateTaxExemption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateTaxExemption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateTaxExemption
impl Serialize for CreateTaxExemption
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 CreateTaxExemption
impl RefUnwindSafe for CreateTaxExemption
impl Send for CreateTaxExemption
impl Sync for CreateTaxExemption
impl Unpin for CreateTaxExemption
impl UnsafeUnpin for CreateTaxExemption
impl UnwindSafe for CreateTaxExemption
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