#[non_exhaustive]pub enum PinGenerationAttributes {
Ibm3624NaturalPin(Ibm3624NaturalPin),
Ibm3624PinFromOffset(Ibm3624PinFromOffset),
Ibm3624PinOffset(Ibm3624PinOffset),
Ibm3624RandomPin(Ibm3624RandomPin),
VisaPin(VisaPin),
VisaPinVerificationValue(VisaPinVerificationValue),
Unknown,
}
Expand description
Parameters that are required for PIN data generation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ibm3624NaturalPin(Ibm3624NaturalPin)
Parameters that are required to generate or verify Ibm3624 natural PIN.
Ibm3624PinFromOffset(Ibm3624PinFromOffset)
Parameters that are required to generate or verify Ibm3624 PIN from offset PIN.
Ibm3624PinOffset(Ibm3624PinOffset)
Parameters that are required to generate or verify Ibm3624 PIN offset PIN.
Ibm3624RandomPin(Ibm3624RandomPin)
Parameters that are required to generate or verify Ibm3624 random PIN.
VisaPin(VisaPin)
Parameters that are required to generate or verify Visa PIN.
VisaPinVerificationValue(VisaPinVerificationValue)
Parameters that are required to generate or verify Visa PIN Verification Value (PVV).
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl PinGenerationAttributes
impl PinGenerationAttributes
sourcepub fn as_ibm3624_natural_pin(&self) -> Result<&Ibm3624NaturalPin, &Self>
pub fn as_ibm3624_natural_pin(&self) -> Result<&Ibm3624NaturalPin, &Self>
Tries to convert the enum instance into Ibm3624NaturalPin
, extracting the inner Ibm3624NaturalPin
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_ibm3624_natural_pin(&self) -> bool
pub fn is_ibm3624_natural_pin(&self) -> bool
Returns true if this is a Ibm3624NaturalPin
.
sourcepub fn as_ibm3624_pin_from_offset(&self) -> Result<&Ibm3624PinFromOffset, &Self>
pub fn as_ibm3624_pin_from_offset(&self) -> Result<&Ibm3624PinFromOffset, &Self>
Tries to convert the enum instance into Ibm3624PinFromOffset
, extracting the inner Ibm3624PinFromOffset
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_ibm3624_pin_from_offset(&self) -> bool
pub fn is_ibm3624_pin_from_offset(&self) -> bool
Returns true if this is a Ibm3624PinFromOffset
.
sourcepub fn as_ibm3624_pin_offset(&self) -> Result<&Ibm3624PinOffset, &Self>
pub fn as_ibm3624_pin_offset(&self) -> Result<&Ibm3624PinOffset, &Self>
Tries to convert the enum instance into Ibm3624PinOffset
, extracting the inner Ibm3624PinOffset
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_ibm3624_pin_offset(&self) -> bool
pub fn is_ibm3624_pin_offset(&self) -> bool
Returns true if this is a Ibm3624PinOffset
.
sourcepub fn as_ibm3624_random_pin(&self) -> Result<&Ibm3624RandomPin, &Self>
pub fn as_ibm3624_random_pin(&self) -> Result<&Ibm3624RandomPin, &Self>
Tries to convert the enum instance into Ibm3624RandomPin
, extracting the inner Ibm3624RandomPin
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_ibm3624_random_pin(&self) -> bool
pub fn is_ibm3624_random_pin(&self) -> bool
Returns true if this is a Ibm3624RandomPin
.
sourcepub fn as_visa_pin(&self) -> Result<&VisaPin, &Self>
pub fn as_visa_pin(&self) -> Result<&VisaPin, &Self>
sourcepub fn is_visa_pin(&self) -> bool
pub fn is_visa_pin(&self) -> bool
Returns true if this is a VisaPin
.
sourcepub fn as_visa_pin_verification_value(
&self,
) -> Result<&VisaPinVerificationValue, &Self>
pub fn as_visa_pin_verification_value( &self, ) -> Result<&VisaPinVerificationValue, &Self>
Tries to convert the enum instance into VisaPinVerificationValue
, extracting the inner VisaPinVerificationValue
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_visa_pin_verification_value(&self) -> bool
pub fn is_visa_pin_verification_value(&self) -> bool
Returns true if this is a VisaPinVerificationValue
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for PinGenerationAttributes
impl Clone for PinGenerationAttributes
source§fn clone(&self) -> PinGenerationAttributes
fn clone(&self) -> PinGenerationAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PinGenerationAttributes
impl Debug for PinGenerationAttributes
source§impl PartialEq for PinGenerationAttributes
impl PartialEq for PinGenerationAttributes
source§fn eq(&self, other: &PinGenerationAttributes) -> bool
fn eq(&self, other: &PinGenerationAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PinGenerationAttributes
Auto Trait Implementations§
impl Freeze for PinGenerationAttributes
impl RefUnwindSafe for PinGenerationAttributes
impl Send for PinGenerationAttributes
impl Sync for PinGenerationAttributes
impl Unpin for PinGenerationAttributes
impl UnwindSafe for PinGenerationAttributes
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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