pub struct SingleInvoicingRequestArgs { /* private fields */ }
Expand description
Builder for SingleInvoicingRequest
.
Implementations§
Source§impl SingleInvoicingRequestArgs
impl SingleInvoicingRequestArgs
pub fn externalReference<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn billedFullName<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn billedPhoneNumber<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn billedPeriod<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn invoiceName<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn dueDate<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn accountReference<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn amount<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn invoiceItems<VALUE: Into<Vec<InvoiceItems>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<SingleInvoicingRequest, MpesaError>
pub fn build(&self) -> Result<SingleInvoicingRequest, MpesaError>
Trait Implementations§
Source§impl Clone for SingleInvoicingRequestArgs
impl Clone for SingleInvoicingRequestArgs
Source§fn clone(&self) -> SingleInvoicingRequestArgs
fn clone(&self) -> SingleInvoicingRequestArgs
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 SingleInvoicingRequestArgs
impl Debug for SingleInvoicingRequestArgs
Auto Trait Implementations§
impl Freeze for SingleInvoicingRequestArgs
impl RefUnwindSafe for SingleInvoicingRequestArgs
impl Send for SingleInvoicingRequestArgs
impl Sync for SingleInvoicingRequestArgs
impl Unpin for SingleInvoicingRequestArgs
impl UnwindSafe for SingleInvoicingRequestArgs
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