pub struct CustomerInvoiceDraft {Show 15 fields
pub id: Option<String>,
pub customer_id: Option<String>,
pub invoice_date: Option<DateTime<Utc>>,
pub due_date: Option<DateTime<Utc>>,
pub delivery_date: Option<DateTime<Utc>>,
pub currency_code: Option<String>,
pub rows: Vec<CustomerInvoiceDraftRow>,
pub total_amount: Option<Money>,
pub total_vat_amount: Option<Money>,
pub total_amount_including_vat: Option<Money>,
pub remarks: Option<String>,
pub your_reference: Option<String>,
pub our_reference: Option<String>,
pub created_utc: Option<DateTime<Utc>>,
pub modified_utc: Option<DateTime<Utc>>,
}Expand description
Customer invoice draft (unpublished invoice).
Fields§
§id: Option<String>Unique identifier.
customer_id: Option<String>Customer ID.
invoice_date: Option<DateTime<Utc>>Invoice date.
due_date: Option<DateTime<Utc>>Due date.
delivery_date: Option<DateTime<Utc>>Delivery date.
currency_code: Option<String>Currency code (ISO 4217).
rows: Vec<CustomerInvoiceDraftRow>Invoice rows/line items.
total_amount: Option<Money>Total amount excluding VAT.
total_vat_amount: Option<Money>Total VAT amount.
total_amount_including_vat: Option<Money>Total amount including VAT.
remarks: Option<String>Remarks/notes.
your_reference: Option<String>Your reference.
our_reference: Option<String>Our reference.
created_utc: Option<DateTime<Utc>>When the draft was created.
modified_utc: Option<DateTime<Utc>>When the draft was last modified.
Trait Implementations§
Source§impl Clone for CustomerInvoiceDraft
impl Clone for CustomerInvoiceDraft
Source§fn clone(&self) -> CustomerInvoiceDraft
fn clone(&self) -> CustomerInvoiceDraft
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 CustomerInvoiceDraft
impl Debug for CustomerInvoiceDraft
Source§impl Default for CustomerInvoiceDraft
impl Default for CustomerInvoiceDraft
Source§fn default() -> CustomerInvoiceDraft
fn default() -> CustomerInvoiceDraft
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomerInvoiceDraft
impl<'de> Deserialize<'de> for CustomerInvoiceDraft
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 CustomerInvoiceDraft
impl RefUnwindSafe for CustomerInvoiceDraft
impl Send for CustomerInvoiceDraft
impl Sync for CustomerInvoiceDraft
impl Unpin for CustomerInvoiceDraft
impl UnwindSafe for CustomerInvoiceDraft
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