pub struct TaxSummary {
pub tax_type: Option<String>,
pub tax_rate: Option<f64>,
pub taxable_amount: Option<f64>,
pub tax_amount: f64,
}Expand description
税务汇总结构体
Fields§
§tax_type: Option<String>税种(如:增值税、营业税、GST等)
tax_rate: Option<f64>税率(百分比)
taxable_amount: Option<f64>应税金额(税基)
tax_amount: f64税额
Trait Implementations§
Source§impl Clone for TaxSummary
impl Clone for TaxSummary
Source§fn clone(&self) -> TaxSummary
fn clone(&self) -> TaxSummary
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 Debug for TaxSummary
impl Debug for TaxSummary
Source§impl Default for TaxSummary
impl Default for TaxSummary
Source§fn default() -> TaxSummary
fn default() -> TaxSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaxSummary
impl<'de> Deserialize<'de> for TaxSummary
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
Auto Trait Implementations§
impl Freeze for TaxSummary
impl RefUnwindSafe for TaxSummary
impl Send for TaxSummary
impl Sync for TaxSummary
impl Unpin for TaxSummary
impl UnsafeUnpin for TaxSummary
impl UnwindSafe for TaxSummary
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