Skip to main content

DetResult

Struct DetResult 

Source
pub struct DetResult {
Show 17 fields pub xml: String, pub icms_totals: IcmsTotals, pub v_ipi: i64, pub v_pis: i64, pub v_cofins: i64, pub v_ii: i64, pub v_frete: i64, pub v_seg: i64, pub v_desc: i64, pub v_outro: i64, pub ind_tot: u8, pub v_tot_trib: i64, pub v_ipi_devol: i64, pub v_pis_st: i64, pub v_cofins_st: i64, pub ind_deduz_deson: bool, pub has_issqn: bool,
}
Expand description

Result from building a single <det> element.

Fields§

§xml: String

The serialised <det> XML string.

§icms_totals: IcmsTotals

Accumulated ICMS totals contributed by this item.

§v_ipi: i64

IPI value in cents contributed by this item.

§v_pis: i64

PIS value in cents contributed by this item.

§v_cofins: i64

COFINS value in cents contributed by this item.

§v_ii: i64

II (import tax) value in cents contributed by this item.

§v_frete: i64

Freight value in cents for this item.

§v_seg: i64

Insurance value in cents for this item.

§v_desc: i64

Discount value in cents for this item.

§v_outro: i64

Other expenses value in cents for this item.

§ind_tot: u8

Whether this item counts towards the invoice total (indTot).

§v_tot_trib: i64

Approximate total tax for this item (vTotTrib). Optional.

§v_ipi_devol: i64

IPI devolution value in cents contributed by this item.

§v_pis_st: i64

PIS-ST value in cents contributed by this item (only when indSomaPISST = 1).

§v_cofins_st: i64

COFINS-ST value in cents contributed by this item (only when indSomaCOFINSST = 1).

§ind_deduz_deson: bool

Whether this item has indDeduzDeson = 1 (desoneration deduction applies).

§has_issqn: bool

Whether this item uses ISSQN instead of ICMS.

Trait Implementations§

Source§

impl Clone for DetResult

Source§

fn clone(&self) -> DetResult

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DetResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.