pub struct Reversal<'m, C: Config> { /* private fields */ }
Expand description
Client to call the transaction reversal API
Implementations§
Source§impl<'m, C: Config> Reversal<'m, C>
impl<'m, C: Config> Reversal<'m, C>
pub fn new(client: &'m Client<C>) -> Self
Sourcepub async fn create(
&self,
request: ReversalRequest,
) -> Result<ReversalResponse, MpesaError>
pub async fn create( &self, request: ReversalRequest, ) -> Result<ReversalResponse, MpesaError>
Creates a request for the provided parameters
Auto Trait Implementations§
impl<'m, C> Freeze for Reversal<'m, C>
impl<'m, C> !RefUnwindSafe for Reversal<'m, C>
impl<'m, C> Send for Reversal<'m, C>where
C: Sync,
impl<'m, C> Sync for Reversal<'m, C>where
C: Sync,
impl<'m, C> Unpin for Reversal<'m, C>
impl<'m, C> !UnwindSafe for Reversal<'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