#[non_exhaustive]pub struct SessionKeyEmvCommonBuilder { /* private fields */ }
Expand description
A builder for SessionKeyEmvCommon
.
Implementations§
source§impl SessionKeyEmvCommonBuilder
impl SessionKeyEmvCommonBuilder
sourcepub fn primary_account_number(self, input: impl Into<String>) -> Self
pub fn primary_account_number(self, input: impl Into<String>) -> Self
The Primary Account Number (PAN) of the cardholder. A PAN is a unique identifier for a payment credit or debit card and associates the card to a specific account holder.
This field is required.sourcepub fn set_primary_account_number(self, input: Option<String>) -> Self
pub fn set_primary_account_number(self, input: Option<String>) -> Self
The Primary Account Number (PAN) of the cardholder. A PAN is a unique identifier for a payment credit or debit card and associates the card to a specific account holder.
sourcepub fn get_primary_account_number(&self) -> &Option<String>
pub fn get_primary_account_number(&self) -> &Option<String>
The Primary Account Number (PAN) of the cardholder. A PAN is a unique identifier for a payment credit or debit card and associates the card to a specific account holder.
sourcepub fn pan_sequence_number(self, input: impl Into<String>) -> Self
pub fn pan_sequence_number(self, input: impl Into<String>) -> Self
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
This field is required.sourcepub fn set_pan_sequence_number(self, input: Option<String>) -> Self
pub fn set_pan_sequence_number(self, input: Option<String>) -> Self
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
sourcepub fn get_pan_sequence_number(&self) -> &Option<String>
pub fn get_pan_sequence_number(&self) -> &Option<String>
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
sourcepub fn application_transaction_counter(self, input: impl Into<String>) -> Self
pub fn application_transaction_counter(self, input: impl Into<String>) -> Self
The transaction counter that is provided by the terminal during transaction processing.
This field is required.sourcepub fn set_application_transaction_counter(self, input: Option<String>) -> Self
pub fn set_application_transaction_counter(self, input: Option<String>) -> Self
The transaction counter that is provided by the terminal during transaction processing.
sourcepub fn get_application_transaction_counter(&self) -> &Option<String>
pub fn get_application_transaction_counter(&self) -> &Option<String>
The transaction counter that is provided by the terminal during transaction processing.
sourcepub fn build(self) -> Result<SessionKeyEmvCommon, BuildError>
pub fn build(self) -> Result<SessionKeyEmvCommon, BuildError>
Consumes the builder and constructs a SessionKeyEmvCommon
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SessionKeyEmvCommonBuilder
impl Clone for SessionKeyEmvCommonBuilder
source§fn clone(&self) -> SessionKeyEmvCommonBuilder
fn clone(&self) -> SessionKeyEmvCommonBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionKeyEmvCommonBuilder
impl Debug for SessionKeyEmvCommonBuilder
source§impl Default for SessionKeyEmvCommonBuilder
impl Default for SessionKeyEmvCommonBuilder
source§fn default() -> SessionKeyEmvCommonBuilder
fn default() -> SessionKeyEmvCommonBuilder
source§impl PartialEq for SessionKeyEmvCommonBuilder
impl PartialEq for SessionKeyEmvCommonBuilder
source§fn eq(&self, other: &SessionKeyEmvCommonBuilder) -> bool
fn eq(&self, other: &SessionKeyEmvCommonBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SessionKeyEmvCommonBuilder
Auto Trait Implementations§
impl Freeze for SessionKeyEmvCommonBuilder
impl RefUnwindSafe for SessionKeyEmvCommonBuilder
impl Send for SessionKeyEmvCommonBuilder
impl Sync for SessionKeyEmvCommonBuilder
impl Unpin for SessionKeyEmvCommonBuilder
impl UnwindSafe for SessionKeyEmvCommonBuilder
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