pub struct CreateInvoiceMessageRequest<'a> {
pub invoice_id: String,
pub event_type: Option<String>,
pub recipients: Option<Vec<Value>>,
pub subject: Option<String>,
pub body: Option<String>,
pub include_link_to_client_invoice: Option<bool>,
pub attach_pdf: Option<bool>,
pub send_me_a_copy: Option<bool>,
pub thank_you: Option<bool>,
/* 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§event_type: Option<String>§recipients: Option<Vec<Value>>§subject: Option<String>§body: Option<String>§include_link_to_client_invoice: Option<bool>§attach_pdf: Option<bool>§send_me_a_copy: Option<bool>§thank_you: Option<bool>Implementations§
Source§impl<'a> CreateInvoiceMessageRequest<'a>
impl<'a> CreateInvoiceMessageRequest<'a>
pub async fn send(self) -> Result<InvoiceMessage>
pub fn event_type(self, event_type: &str) -> Self
pub fn recipients(self, recipients: Vec<Value>) -> Self
pub fn subject(self, subject: &str) -> Self
pub fn body(self, body: &str) -> Self
pub fn include_link_to_client_invoice( self, include_link_to_client_invoice: bool, ) -> Self
pub fn attach_pdf(self, attach_pdf: bool) -> Self
pub fn send_me_a_copy(self, send_me_a_copy: bool) -> Self
pub fn thank_you(self, thank_you: bool) -> Self
Auto Trait Implementations§
impl<'a> Freeze for CreateInvoiceMessageRequest<'a>
impl<'a> !RefUnwindSafe for CreateInvoiceMessageRequest<'a>
impl<'a> Send for CreateInvoiceMessageRequest<'a>
impl<'a> Sync for CreateInvoiceMessageRequest<'a>
impl<'a> Unpin for CreateInvoiceMessageRequest<'a>
impl<'a> !UnwindSafe for CreateInvoiceMessageRequest<'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