File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ static CARGO_PACKAGE_VERSION: &str = env!("CARGO_PKG_VERSION");
2020pub type MpesaResult < T > = Result < T , MpesaError > ;
2121
2222/// Mpesa client that will facilitate communication with the Safaricom API
23- #[ derive( Debug ) ]
23+ #[ derive( Clone , Debug ) ]
2424pub struct Mpesa < Env : ApiEnvironment > {
2525 client_key : String ,
2626 client_secret : String ,
Original file line number Diff line number Diff line change 1313use crate :: MpesaError ;
1414use std:: { convert:: TryFrom , str:: FromStr } ;
1515
16- #[ derive( Debug ) ]
16+ #[ derive( Debug , Clone ) ]
1717/// Enum to map to desired environment so as to access certificate
1818/// and the base url
1919/// Required to construct a new `Mpesa` struct
Original file line number Diff line number Diff line change 11use mpesa:: ApiEnvironment ;
22use wiremock:: MockServer ;
33
4+ #[ derive( Debug , Clone ) ]
45pub struct TestEnvironment {
56 pub server_url : String ,
67}
You can’t perform that action at this time.
0 commit comments