pub struct LineAllowanceCharge {
pub amount: InvoiceAmount,
pub base: Option<InvoiceAmount>,
pub percent: Option<Percentage>,
pub reason: Option<String>,
pub reason_code: Option<Code>,
}Expand description
Line allowance/charge (BG-27/28). No tax child: Peppol/PINT inherit the line category. Line A/C already sits in BT-131. Do not add them again in taxable_for.
Fields§
§amount: InvoiceAmountBT-136 / BT-141 amount.
base: Option<InvoiceAmount>BT-137 / BT-142 base amount.
percent: Option<Percentage>BT-138 / BT-143 percentage.
reason: Option<String>BT-139 / BT-144 reason.
reason_code: Option<Code>BT-140 / BT-145 reason code.
Trait Implementations§
Source§impl Clone for LineAllowanceCharge
impl Clone for LineAllowanceCharge
Source§fn clone(&self) -> LineAllowanceCharge
fn clone(&self) -> LineAllowanceCharge
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 LineAllowanceCharge
impl Debug for LineAllowanceCharge
impl Eq for LineAllowanceCharge
Source§impl PartialEq for LineAllowanceCharge
impl PartialEq for LineAllowanceCharge
impl StructuralPartialEq for LineAllowanceCharge
Auto Trait Implementations§
impl Freeze for LineAllowanceCharge
impl RefUnwindSafe for LineAllowanceCharge
impl Send for LineAllowanceCharge
impl Sync for LineAllowanceCharge
impl Unpin for LineAllowanceCharge
impl UnsafeUnpin for LineAllowanceCharge
impl UnwindSafe for LineAllowanceCharge
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