pub struct TaxExemption {Show 15 fields
pub id: Uuid,
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 verified: bool,
pub verified_at: Option<DateTime<Utc>>,
pub notes: Option<String>,
pub active: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Customer tax exemption certificate
Fields§
§id: Uuid§customer_id: UuidCustomer this exemption belongs to
exemption_type: ExemptionTypeType of exemption
certificate_number: Option<String>Exemption certificate number
Issuing authority/state
jurisdiction_ids: Vec<Uuid>Jurisdictions where exemption applies (empty = all)
exempt_categories: Vec<ProductTaxCategory>Product categories exempt (empty = all)
effective_from: NaiveDateEffective date
expires_at: Option<NaiveDate>Expiration date
verified: boolWhether exemption has been verified
verified_at: Option<DateTime<Utc>>Verification date
notes: Option<String>Notes about the exemption
active: boolWhether this exemption is active
created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for TaxExemption
impl Clone for TaxExemption
Source§fn clone(&self) -> TaxExemption
fn clone(&self) -> TaxExemption
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 TaxExemption
impl Debug for TaxExemption
Source§impl<'de> Deserialize<'de> for TaxExemption
impl<'de> Deserialize<'de> for TaxExemption
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaxExemption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaxExemption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TaxExemption
impl Serialize for TaxExemption
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 TaxExemption
impl RefUnwindSafe for TaxExemption
impl Send for TaxExemption
impl Sync for TaxExemption
impl Unpin for TaxExemption
impl UnsafeUnpin for TaxExemption
impl UnwindSafe for TaxExemption
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