pub struct MomoPaymentInfo {
pub rail: Rail,
pub addressing_system: AddressingSystem,
pub account_holder_given_name: String,
pub account_holder_surname: String,
pub country: String,
pub mobile_phone_number: String,
pub provider: Provider,
pub beneficiary_document_id: Option<String>,
pub beneficiary_relationship: Option<String>,
}Expand description
MomoPaymentInfo : Mobile Money (MOMO) payment information for African mobile payment services
Fields§
§rail: RailThe payment rail type for mobile money transfers
addressing_system: AddressingSystemThe addressing system used for mobile money transfers
account_holder_given_name: StringThe given name (first name) of the account holder
account_holder_surname: StringThe surname (last name) of the account holder
country: StringThe country for the transfer (ISO 3166-1 alpha-2 code)
mobile_phone_number: StringThe mobile phone number associated with the mobile money account
provider: ProviderThe mobile money service provider
beneficiary_document_id: Option<String>The document ID of the beneficiary
beneficiary_relationship: Option<String>The relationship between sender and beneficiary
Implementations§
Source§impl MomoPaymentInfo
impl MomoPaymentInfo
Sourcepub fn new(
rail: Rail,
addressing_system: AddressingSystem,
account_holder_given_name: String,
account_holder_surname: String,
country: String,
mobile_phone_number: String,
provider: Provider,
) -> MomoPaymentInfo
pub fn new( rail: Rail, addressing_system: AddressingSystem, account_holder_given_name: String, account_holder_surname: String, country: String, mobile_phone_number: String, provider: Provider, ) -> MomoPaymentInfo
Mobile Money (MOMO) payment information for African mobile payment services
Trait Implementations§
Source§impl Clone for MomoPaymentInfo
impl Clone for MomoPaymentInfo
Source§fn clone(&self) -> MomoPaymentInfo
fn clone(&self) -> MomoPaymentInfo
Returns a duplicate 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 MomoPaymentInfo
impl Debug for MomoPaymentInfo
Source§impl Default for MomoPaymentInfo
impl Default for MomoPaymentInfo
Source§fn default() -> MomoPaymentInfo
fn default() -> MomoPaymentInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MomoPaymentInfo
impl<'de> Deserialize<'de> for MomoPaymentInfo
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 PartialEq for MomoPaymentInfo
impl PartialEq for MomoPaymentInfo
Source§impl Serialize for MomoPaymentInfo
impl Serialize for MomoPaymentInfo
impl StructuralPartialEq for MomoPaymentInfo
Auto Trait Implementations§
impl Freeze for MomoPaymentInfo
impl RefUnwindSafe for MomoPaymentInfo
impl Send for MomoPaymentInfo
impl Sync for MomoPaymentInfo
impl Unpin for MomoPaymentInfo
impl UnwindSafe for MomoPaymentInfo
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