pub struct UpdateInvoice {Show 18 fields
pub due_date: Option<DateTime<Utc>>,
pub payment_terms: Option<String>,
pub billing_name: Option<String>,
pub billing_email: Option<String>,
pub billing_address: Option<String>,
pub billing_city: Option<String>,
pub billing_state: Option<String>,
pub billing_postal_code: Option<String>,
pub billing_country: Option<String>,
pub discount_amount: Option<Decimal>,
pub discount_percent: Option<Decimal>,
pub tax_amount: Option<Decimal>,
pub tax_rate: Option<Decimal>,
pub shipping_amount: Option<Decimal>,
pub po_number: Option<String>,
pub notes: Option<String>,
pub terms: Option<String>,
pub footer: Option<String>,
}Expand description
Input for updating an invoice
Fields§
§due_date: Option<DateTime<Utc>>Update due date
payment_terms: Option<String>Update payment terms
billing_name: Option<String>Update billing name
billing_email: Option<String>Update billing email
billing_address: Option<String>Update billing address
billing_city: Option<String>Update billing city
billing_state: Option<String>Update billing state
billing_postal_code: Option<String>Update billing postal code
billing_country: Option<String>Update billing country
discount_amount: Option<Decimal>Update discount amount
discount_percent: Option<Decimal>Update discount percent
tax_amount: Option<Decimal>Update tax amount
tax_rate: Option<Decimal>Update tax rate
shipping_amount: Option<Decimal>Update shipping amount
po_number: Option<String>Update PO number
notes: Option<String>Update notes
terms: Option<String>Update terms
Update footer
Trait Implementations§
Source§impl Clone for UpdateInvoice
impl Clone for UpdateInvoice
Source§fn clone(&self) -> UpdateInvoice
fn clone(&self) -> UpdateInvoice
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 UpdateInvoice
impl Debug for UpdateInvoice
Source§impl Default for UpdateInvoice
impl Default for UpdateInvoice
Source§fn default() -> UpdateInvoice
fn default() -> UpdateInvoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateInvoice
impl<'de> Deserialize<'de> for UpdateInvoice
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateInvoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateInvoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateInvoice
impl Serialize for UpdateInvoice
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateInvoice
impl RefUnwindSafe for UpdateInvoice
impl Send for UpdateInvoice
impl Sync for UpdateInvoice
impl Unpin for UpdateInvoice
impl UnsafeUnpin for UpdateInvoice
impl UnwindSafe for UpdateInvoice
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