Enum mpesa::environment::Environment  
source · pub enum Environment {
    Production,
    Sandbox,
}Expand description
Enum to map to desired environment so as to access certificate
and the base url
Required to construct a new Mpesa struct
Variants§
Trait Implementations§
source§impl ApiEnvironment for Environment
 
impl ApiEnvironment for Environment
source§impl Clone for Environment
 
impl Clone for Environment
source§fn clone(&self) -> Environment
 
fn clone(&self) -> Environment
Returns a copy 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 Environment
 
impl Debug for Environment
source§impl FromStr for Environment
 
impl FromStr for Environment
source§impl TryFrom<&str> for Environment
 
impl TryFrom<&str> for Environment
Auto Trait Implementations§
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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