pub struct WithholdingTaxSchemaConfig {
pub enabled: bool,
pub treaty_network: bool,
pub default_rate: f64,
pub treaty_reduced_rate: f64,
}Expand description
Withholding tax configuration.
Controls generation of withholding tax data for cross-border payments, including treaty network and rate overrides.
Fields§
§enabled: boolWhether withholding tax generation is enabled.
treaty_network: boolWhether to simulate a treaty network with reduced rates.
default_rate: f64Default withholding tax rate for non-treaty countries (0.0 to 1.0).
treaty_reduced_rate: f64Reduced withholding tax rate for treaty countries (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for WithholdingTaxSchemaConfig
impl Clone for WithholdingTaxSchemaConfig
Source§fn clone(&self) -> WithholdingTaxSchemaConfig
fn clone(&self) -> WithholdingTaxSchemaConfig
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 WithholdingTaxSchemaConfig
impl Debug for WithholdingTaxSchemaConfig
Source§impl Default for WithholdingTaxSchemaConfig
impl Default for WithholdingTaxSchemaConfig
Source§impl<'de> Deserialize<'de> for WithholdingTaxSchemaConfig
impl<'de> Deserialize<'de> for WithholdingTaxSchemaConfig
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 WithholdingTaxSchemaConfig
impl RefUnwindSafe for WithholdingTaxSchemaConfig
impl Send for WithholdingTaxSchemaConfig
impl Sync for WithholdingTaxSchemaConfig
impl Unpin for WithholdingTaxSchemaConfig
impl UnsafeUnpin for WithholdingTaxSchemaConfig
impl UnwindSafe for WithholdingTaxSchemaConfig
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