pub struct B2CRequestArgs { /* private fields */ }
Expand description
Builder for B2CRequest
.
Implementations§
Source§impl B2CRequestArgs
impl B2CRequestArgs
pub fn InitiatorName<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn SecurityCredential<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn CommandID<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 Remarks<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn QueueTimeOutURL<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn ResultURL<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn Occassion<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<B2CRequest, MpesaError>
pub fn build(&self) -> Result<B2CRequest, MpesaError>
Trait Implementations§
Source§impl Clone for B2CRequestArgs
impl Clone for B2CRequestArgs
Source§fn clone(&self) -> B2CRequestArgs
fn clone(&self) -> B2CRequestArgs
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 B2CRequestArgs
impl Debug for B2CRequestArgs
Auto Trait Implementations§
impl Freeze for B2CRequestArgs
impl RefUnwindSafe for B2CRequestArgs
impl Send for B2CRequestArgs
impl Sync for B2CRequestArgs
impl Unpin for B2CRequestArgs
impl UnwindSafe for B2CRequestArgs
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