pub struct AuthenticationResponse {Show 18 fields
pub message_type: MessageType,
pub message_version: MessageVersion,
pub three_ds_server_trans_id: String,
pub acs_trans_id: String,
pub ds_trans_id: String,
pub trans_status: TransStatus,
pub trans_status_reason: Option<TransStatusReason>,
pub acs_challenge_mandated: Option<AcsMandated>,
pub eci: Option<Eci>,
pub authentication_value: Option<String>,
pub acs_url: Option<String>,
pub acs_signed_content: Option<String>,
pub acs_dec_con_ind: Option<String>,
pub acs_reference_number: Option<String>,
pub ds_reference_number: Option<String>,
pub cardholder_info: Option<String>,
pub whitelist_status: Option<WhitelistStatus>,
pub whitelist_status_source: Option<WhitelistStatusSource>,
}Expand description
EMV 3DS Authentication Response (ARes).
Returned by the Directory Server (relaying from the ACS) in response to an AReq.
A transStatus of C means the ACS requires a challenge; Y or A means
authentication succeeded frictionlessly.
Fields§
§message_type: MessageType§message_version: MessageVersion§three_ds_server_trans_id: String§acs_trans_id: String§ds_trans_id: String§trans_status: TransStatus§trans_status_reason: Option<TransStatusReason>§acs_challenge_mandated: Option<AcsMandated>Whether the ACS mandates a challenge regardless of requestor preference.
eci: Option<Eci>ECI value to include in the authorization request.
authentication_value: Option<String>CAVV / AAV — base64url encoded; present only on Y or A.
acs_url: Option<String>URL of the ACS challenge page (browser channel).
acs_signed_content: Option<String>JWS-signed content for app-based challenge.
acs_dec_con_ind: Option<String>Decoupled authentication maximum timeout (minutes).
acs_reference_number: Option<String>§ds_reference_number: Option<String>§cardholder_info: Option<String>§whitelist_status: Option<WhitelistStatus>§whitelist_status_source: Option<WhitelistStatusSource>Implementations§
Source§impl AuthenticationResponse
impl AuthenticationResponse
Sourcepub fn is_frictionless(&self) -> bool
pub fn is_frictionless(&self) -> bool
True if authentication completed without a challenge.
Sourcepub fn requires_challenge(&self) -> bool
pub fn requires_challenge(&self) -> bool
True if the requestor must present a challenge UI to the cardholder.
Trait Implementations§
Source§impl Clone for AuthenticationResponse
impl Clone for AuthenticationResponse
Source§fn clone(&self) -> AuthenticationResponse
fn clone(&self) -> AuthenticationResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthenticationResponse
impl Debug for AuthenticationResponse
Source§impl<'de> Deserialize<'de> for AuthenticationResponse
impl<'de> Deserialize<'de> for AuthenticationResponse
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 AuthenticationResponse
impl RefUnwindSafe for AuthenticationResponse
impl Send for AuthenticationResponse
impl Sync for AuthenticationResponse
impl Unpin for AuthenticationResponse
impl UnsafeUnpin for AuthenticationResponse
impl UnwindSafe for AuthenticationResponse
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