pub struct AllowanceCharge {
pub amount: InvoiceAmount,
pub base: Option<InvoiceAmount>,
pub percent: Option<Percentage>,
pub reason: Option<String>,
pub reason_code: Option<Code>,
pub tax: Option<TaxCategory>,
}Expand description
BG-20 / BG-21 document level allowance or charge.
Fields§
§amount: InvoiceAmountBT-92 / BT-99 amount.
base: Option<InvoiceAmount>BT-93 / BT-100 base amount.
percent: Option<Percentage>BT-94 / BT-101 percentage.
reason: Option<String>BT-97 / BT-104 reason.
reason_code: Option<Code>BT-98 / BT-105 reason code.
tax: Option<TaxCategory>BT-95/96 or BT-102/103 tax category and rate.
Trait Implementations§
Source§impl Clone for AllowanceCharge
impl Clone for AllowanceCharge
Source§fn clone(&self) -> AllowanceCharge
fn clone(&self) -> AllowanceCharge
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 AllowanceCharge
impl Debug for AllowanceCharge
impl Eq for AllowanceCharge
Source§impl PartialEq for AllowanceCharge
impl PartialEq for AllowanceCharge
impl StructuralPartialEq for AllowanceCharge
Auto Trait Implementations§
impl Freeze for AllowanceCharge
impl RefUnwindSafe for AllowanceCharge
impl Send for AllowanceCharge
impl Sync for AllowanceCharge
impl Unpin for AllowanceCharge
impl UnsafeUnpin for AllowanceCharge
impl UnwindSafe for AllowanceCharge
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