#[non_exhaustive]pub struct SessionKeyEmv2000Builder { /* private fields */ }
Expand description
A builder for SessionKeyEmv2000
.
Implementations§
source§impl SessionKeyEmv2000Builder
impl SessionKeyEmv2000Builder
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<SessionKeyEmv2000, BuildError>
pub fn build(self) -> Result<SessionKeyEmv2000, BuildError>
Consumes the builder and constructs a SessionKeyEmv2000
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SessionKeyEmv2000Builder
impl Clone for SessionKeyEmv2000Builder
source§fn clone(&self) -> SessionKeyEmv2000Builder
fn clone(&self) -> SessionKeyEmv2000Builder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionKeyEmv2000Builder
impl Debug for SessionKeyEmv2000Builder
source§impl Default for SessionKeyEmv2000Builder
impl Default for SessionKeyEmv2000Builder
source§fn default() -> SessionKeyEmv2000Builder
fn default() -> SessionKeyEmv2000Builder
source§impl PartialEq for SessionKeyEmv2000Builder
impl PartialEq for SessionKeyEmv2000Builder
source§fn eq(&self, other: &SessionKeyEmv2000Builder) -> bool
fn eq(&self, other: &SessionKeyEmv2000Builder) -> bool
self
and other
values to be equal, and is used
by ==
.