pub struct StartRequest {
pub amount: Amount,
pub description: String,
pub callback_url: String,
pub email: Option<String>,
pub mobile: Option<String>,
pub order_id: Option<String>,
pub extras: HashMap<String, String>,
}Expand description
Inputs for Gateway::start_payment.
Fields§
§amount: AmountThe amount to charge.
description: StringShort human-readable description shown to the user on the gateway page.
callback_url: StringHTTPS URL the gateway will redirect the user to after payment.
email: Option<String>Optional buyer e-mail (used by some providers for receipts).
mobile: Option<String>Optional buyer mobile number (Iranian format, used by some providers to pre-fill the OTP step).
order_id: Option<String>Optional merchant-side order ID — echoed back in the verify response where supported. Strongly recommended for reconciliation.
extras: HashMap<String, String>Free-form provider-specific extras (forwarded as-is to drivers that support metadata).
Implementations§
Source§impl StartRequest
impl StartRequest
Sourcepub fn builder() -> StartRequestBuilder
pub fn builder() -> StartRequestBuilder
Start a builder.
Trait Implementations§
Source§impl Clone for StartRequest
impl Clone for StartRequest
Source§fn clone(&self) -> StartRequest
fn clone(&self) -> StartRequest
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 StartRequest
impl Debug for StartRequest
Source§impl<'de> Deserialize<'de> for StartRequest
impl<'de> Deserialize<'de> for StartRequest
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
Auto Trait Implementations§
impl Freeze for StartRequest
impl RefUnwindSafe for StartRequest
impl Send for StartRequest
impl Sync for StartRequest
impl Unpin for StartRequest
impl UnsafeUnpin for StartRequest
impl UnwindSafe for StartRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more