pub struct ExpressPushRequestArgs { /* private fields */ }
Expand description
Builder for ExpressPushRequest
.
Implementations§
Source§impl ExpressPushRequestArgs
impl ExpressPushRequestArgs
pub fn BusinessShortCode<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn Password<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn Timestamp<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn TransactionType<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn Amount<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn PartyA<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn PartyB<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn PhoneNumber<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn CallBackURL<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn AccountReference<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn TransactionDesc<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<ExpressPushRequest, MpesaError>
pub fn build(&self) -> Result<ExpressPushRequest, MpesaError>
Trait Implementations§
Source§impl Clone for ExpressPushRequestArgs
impl Clone for ExpressPushRequestArgs
Source§fn clone(&self) -> ExpressPushRequestArgs
fn clone(&self) -> ExpressPushRequestArgs
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 ExpressPushRequestArgs
impl Debug for ExpressPushRequestArgs
Auto Trait Implementations§
impl Freeze for ExpressPushRequestArgs
impl RefUnwindSafe for ExpressPushRequestArgs
impl Send for ExpressPushRequestArgs
impl Sync for ExpressPushRequestArgs
impl Unpin for ExpressPushRequestArgs
impl UnwindSafe for ExpressPushRequestArgs
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