Enum mpesa::IdentifierTypes
source · #[repr(u16)]pub enum IdentifierTypes {
MSISDN,
TillNumber,
ShortCode,
}
Expand description
Identifier types - both sender and receiver - identify an M-Pesa transaction’s sending and receiving party as either a shortcode, a till number or a MSISDN (phone number). There are three identifier types that can be used with M-Pesa APIs.
Variants§
Trait Implementations§
source§impl Clone for IdentifierTypes
impl Clone for IdentifierTypes
source§fn clone(&self) -> IdentifierTypes
fn clone(&self) -> IdentifierTypes
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 IdentifierTypes
impl Debug for IdentifierTypes
source§impl<'de> Deserialize<'de> for IdentifierTypes
impl<'de> Deserialize<'de> for IdentifierTypes
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for IdentifierTypes
impl Display for IdentifierTypes
source§impl Serialize for IdentifierTypes
impl Serialize for IdentifierTypes
impl Copy for IdentifierTypes
Auto Trait Implementations§
impl RefUnwindSafe for IdentifierTypes
impl Send for IdentifierTypes
impl Sync for IdentifierTypes
impl Unpin for IdentifierTypes
impl UnwindSafe for IdentifierTypes
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