pub struct ProposedInvoice {
pub invoice_number: String,
pub invoice_date: NaiveDate,
pub due_date: NaiveDate,
pub open_amount: Decimal,
pub payment_amount: Decimal,
pub discount: Decimal,
pub days_until_due: i32,
}Expand description
Invoice in a payment proposal.
Fields§
§invoice_number: StringInvoice number.
invoice_date: NaiveDateInvoice date.
due_date: NaiveDateDue date.
open_amount: DecimalOpen amount.
payment_amount: DecimalProposed payment.
discount: DecimalDiscount available.
days_until_due: i32Days until due (negative if overdue).
Trait Implementations§
Source§impl Clone for ProposedInvoice
impl Clone for ProposedInvoice
Source§fn clone(&self) -> ProposedInvoice
fn clone(&self) -> ProposedInvoice
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 ProposedInvoice
impl Debug for ProposedInvoice
Source§impl<'de> Deserialize<'de> for ProposedInvoice
impl<'de> Deserialize<'de> for ProposedInvoice
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 ProposedInvoice
impl RefUnwindSafe for ProposedInvoice
impl Send for ProposedInvoice
impl Sync for ProposedInvoice
impl Unpin for ProposedInvoice
impl UnwindSafe for ProposedInvoice
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