pub struct AuthorizePaymentResponse {
pub auth_code: Option<String>,
pub fail_reason: Option<String>,
pub success: bool,
}
Expand description
Response to AuthorizePayment
Fields§
§auth_code: Option<String>
Optional string containing the tx ID of auth
fail_reason: Option<String>
Optional string w/rejection reason
success: bool
Indicates a successful authorization
Trait Implementations§
Source§impl Clone for AuthorizePaymentResponse
impl Clone for AuthorizePaymentResponse
Source§fn clone(&self) -> AuthorizePaymentResponse
fn clone(&self) -> AuthorizePaymentResponse
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 AuthorizePaymentResponse
impl Debug for AuthorizePaymentResponse
Source§impl Default for AuthorizePaymentResponse
impl Default for AuthorizePaymentResponse
Source§fn default() -> AuthorizePaymentResponse
fn default() -> AuthorizePaymentResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorizePaymentResponse
impl<'de> Deserialize<'de> for AuthorizePaymentResponse
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 AuthorizePaymentResponse
impl PartialEq for AuthorizePaymentResponse
Source§impl Serialize for AuthorizePaymentResponse
impl Serialize for AuthorizePaymentResponse
impl Eq for AuthorizePaymentResponse
impl StructuralPartialEq for AuthorizePaymentResponse
Auto Trait Implementations§
impl Freeze for AuthorizePaymentResponse
impl RefUnwindSafe for AuthorizePaymentResponse
impl Send for AuthorizePaymentResponse
impl Sync for AuthorizePaymentResponse
impl Unpin for AuthorizePaymentResponse
impl UnwindSafe for AuthorizePaymentResponse
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