pub struct UpdateInvoiceRequest<'a> {Show 16 fields
pub invoice_id: String,
pub client_id: Option<i64>,
pub retainer_id: Option<i64>,
pub estimate_id: Option<i64>,
pub number: Option<String>,
pub purchase_order: Option<String>,
pub tax: Option<f64>,
pub tax2: Option<f64>,
pub discount: Option<f64>,
pub subject: Option<String>,
pub notes: Option<String>,
pub currency: Option<String>,
pub issue_date: Option<String>,
pub due_date: Option<String>,
pub payment_term: Option<String>,
pub line_items: Option<Vec<Value>>,
/* private fields */
}Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§invoice_id: String§client_id: Option<i64>§retainer_id: Option<i64>§estimate_id: Option<i64>§number: Option<String>§purchase_order: Option<String>§tax: Option<f64>§tax2: Option<f64>§discount: Option<f64>§subject: Option<String>§notes: Option<String>§currency: Option<String>§issue_date: Option<String>§due_date: Option<String>§payment_term: Option<String>§line_items: Option<Vec<Value>>Implementations§
Source§impl<'a> UpdateInvoiceRequest<'a>
impl<'a> UpdateInvoiceRequest<'a>
pub async fn send(self) -> Result<Invoice>
pub fn client_id(self, client_id: i64) -> Self
pub fn retainer_id(self, retainer_id: i64) -> Self
pub fn estimate_id(self, estimate_id: i64) -> Self
pub fn number(self, number: &str) -> Self
pub fn purchase_order(self, purchase_order: &str) -> Self
pub fn tax(self, tax: f64) -> Self
pub fn tax2(self, tax2: f64) -> Self
pub fn discount(self, discount: f64) -> Self
pub fn subject(self, subject: &str) -> Self
pub fn notes(self, notes: &str) -> Self
pub fn currency(self, currency: &str) -> Self
pub fn issue_date(self, issue_date: &str) -> Self
pub fn due_date(self, due_date: &str) -> Self
pub fn payment_term(self, payment_term: &str) -> Self
pub fn line_items(self, line_items: Vec<Value>) -> Self
Auto Trait Implementations§
impl<'a> Freeze for UpdateInvoiceRequest<'a>
impl<'a> !RefUnwindSafe for UpdateInvoiceRequest<'a>
impl<'a> Send for UpdateInvoiceRequest<'a>
impl<'a> Sync for UpdateInvoiceRequest<'a>
impl<'a> Unpin for UpdateInvoiceRequest<'a>
impl<'a> !UnwindSafe for UpdateInvoiceRequest<'a>
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