Struct mpesa::services::DynamicQRRequest
source · pub struct DynamicQRRequest<'mpesa> {
pub merchant_name: &'mpesa str,
pub ref_no: &'mpesa str,
pub amount: f64,
pub transaction_type: TransactionType,
pub credit_party_identifier: &'mpesa str,
pub size: &'mpesa str,
}Fields§
§merchant_name: &'mpesa strName of the Company/M-Pesa Merchant Name
ref_no: &'mpesa strTransaction Reference Number
amount: f64The total amount of the transaction
transaction_type: TransactionTypeTransaction Type
This can be a TransactionType or a &str
The &str must be one of the following:
BGfor Buy GoodsPBfor Pay BillWAWithdraw CashSMSend Money (Mobile Number)SBSent to Business. Business number CPI in MSISDN format.
credit_party_identifier: &'mpesa strCredit Party Identifier.
Can be a Mobile Number, Business Number, Agent Till, Paybill or Business number, or Merchant Buy Goods.
size: &'mpesa strSize of the QR code image in pixels.
QR code image will always be a square image.
Trait Implementations§
source§impl<'mpesa> Debug for DynamicQRRequest<'mpesa>
impl<'mpesa> Debug for DynamicQRRequest<'mpesa>
source§impl<'mpesa, Env: ApiEnvironment> From<DynamicQR<'mpesa, Env>> for DynamicQRRequest<'mpesa>
impl<'mpesa, Env: ApiEnvironment> From<DynamicQR<'mpesa, Env>> for DynamicQRRequest<'mpesa>
source§fn from(express: DynamicQR<'mpesa, Env>) -> DynamicQRRequest<'mpesa>
fn from(express: DynamicQR<'mpesa, Env>) -> DynamicQRRequest<'mpesa>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'mpesa> RefUnwindSafe for DynamicQRRequest<'mpesa>
impl<'mpesa> Send for DynamicQRRequest<'mpesa>
impl<'mpesa> Sync for DynamicQRRequest<'mpesa>
impl<'mpesa> Unpin for DynamicQRRequest<'mpesa>
impl<'mpesa> UnwindSafe for DynamicQRRequest<'mpesa>
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