pub struct VerifyResponse {
pub transaction_id: String,
pub authority: String,
pub amount: Amount,
pub card_pan: Option<String>,
pub card_hash: Option<String>,
pub fee: Option<Amount>,
pub provider: &'static str,
pub raw: Value,
}Expand description
Output of Gateway::verify_payment.
Fields§
§transaction_id: StringGateway’s permanent transaction reference (RefId for ZarinPal,
track_id for IDPay, etc.). Persist this for refunds and audits.
The original authority that was just verified.
amount: AmountFinal settled amount (should match what you sent — the SDK already double-checks).
card_pan: Option<String>Masked card PAN if the gateway returned it.
card_hash: Option<String>Hash of the payer’s card (lets you fingerprint repeat customers without storing PANs).
fee: Option<Amount>Gateway fee, when reported.
provider: &'static strDriver name.
raw: ValueFull provider response for debugging / audit logging.
Trait Implementations§
Source§impl Clone for VerifyResponse
impl Clone for VerifyResponse
Source§fn clone(&self) -> VerifyResponse
fn clone(&self) -> VerifyResponse
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 VerifyResponse
impl Debug for VerifyResponse
Source§impl Deserialize<'static> for VerifyResponse
impl Deserialize<'static> for VerifyResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VerifyResponse
impl RefUnwindSafe for VerifyResponse
impl Send for VerifyResponse
impl Sync for VerifyResponse
impl Unpin for VerifyResponse
impl UnsafeUnpin for VerifyResponse
impl UnwindSafe for VerifyResponse
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