pub struct TaxElement {
pub outer_tag: Option<String>,
pub outer_fields: Vec<TaxField>,
pub variant_tag: String,
pub fields: Vec<TaxField>,
}Expand description
Structured representation of a tax XML element.
Fields§
§outer_tag: Option<String>Outer wrapper tag (e.g., “ICMS”, “PIS”, “IPI”). None = no wrapper.
outer_fields: Vec<TaxField>Fields at the outer level, before the variant (e.g., IPI’s cEnq).
variant_tag: StringThe variant/inner tag (e.g., “ICMS00”, “PISAliq”, “IPITrib”, “II”).
fields: Vec<TaxField>Fields inside the variant tag.
Trait Implementations§
Source§impl Clone for TaxElement
impl Clone for TaxElement
Source§fn clone(&self) -> TaxElement
fn clone(&self) -> TaxElement
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 TaxElement
impl Debug for TaxElement
Source§impl XmlSerializable for TaxElement
impl XmlSerializable for TaxElement
Source§fn to_xml(&self) -> String
fn to_xml(&self) -> String
Serialize the element to XML, delegating to serialize_tax_element.
Auto Trait Implementations§
impl Freeze for TaxElement
impl RefUnwindSafe for TaxElement
impl Send for TaxElement
impl Sync for TaxElement
impl Unpin for TaxElement
impl UnsafeUnpin for TaxElement
impl UnwindSafe for TaxElement
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