pub struct Bpaybill<'m, C: Config> { /* private fields */ }
Expand description
Client to call the business paybill API
Implementations§
Source§impl<'m, C: Config> Bpaybill<'m, C>
impl<'m, C: Config> Bpaybill<'m, C>
pub fn new(client: &'m Client<C>) -> Self
pub async fn create( &self, request: BusinessPayBillRequest, ) -> Result<BusinessPayBillResponse, MpesaError>
Auto Trait Implementations§
impl<'m, C> Freeze for Bpaybill<'m, C>
impl<'m, C> !RefUnwindSafe for Bpaybill<'m, C>
impl<'m, C> Send for Bpaybill<'m, C>where
C: Sync,
impl<'m, C> Sync for Bpaybill<'m, C>where
C: Sync,
impl<'m, C> Unpin for Bpaybill<'m, C>
impl<'m, C> !UnwindSafe for Bpaybill<'m, C>
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