UpdateInvoiceRequest

Struct UpdateInvoiceRequest 

Source
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>

Source

pub async fn send(self) -> Result<Invoice>

Source

pub fn client_id(self, client_id: i64) -> Self

Source

pub fn retainer_id(self, retainer_id: i64) -> Self

Source

pub fn estimate_id(self, estimate_id: i64) -> Self

Source

pub fn number(self, number: &str) -> Self

Source

pub fn purchase_order(self, purchase_order: &str) -> Self

Source

pub fn tax(self, tax: f64) -> Self

Source

pub fn tax2(self, tax2: f64) -> Self

Source

pub fn discount(self, discount: f64) -> Self

Source

pub fn subject(self, subject: &str) -> Self

Source

pub fn notes(self, notes: &str) -> Self

Source

pub fn currency(self, currency: &str) -> Self

Source

pub fn issue_date(self, issue_date: &str) -> Self

Source

pub fn due_date(self, due_date: &str) -> Self

Source

pub fn payment_term(self, payment_term: &str) -> Self

Source

pub fn line_items(self, line_items: Vec<Value>) -> Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more