#[non_exhaustive]pub struct DukptAttributesBuilder { /* private fields */ }
Expand description
A builder for DukptAttributes
.
Implementations§
source§impl DukptAttributesBuilder
impl DukptAttributesBuilder
sourcepub fn key_serial_number(self, input: impl Into<String>) -> Self
pub fn key_serial_number(self, input: impl Into<String>) -> Self
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
This field is required.sourcepub fn set_key_serial_number(self, input: Option<String>) -> Self
pub fn set_key_serial_number(self, input: Option<String>) -> Self
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
sourcepub fn get_key_serial_number(&self) -> &Option<String>
pub fn get_key_serial_number(&self) -> &Option<String>
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
sourcepub fn dukpt_derivation_type(self, input: DukptDerivationType) -> Self
pub fn dukpt_derivation_type(self, input: DukptDerivationType) -> Self
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
.
sourcepub fn set_dukpt_derivation_type(
self,
input: Option<DukptDerivationType>,
) -> Self
pub fn set_dukpt_derivation_type( self, input: Option<DukptDerivationType>, ) -> Self
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
.
sourcepub fn get_dukpt_derivation_type(&self) -> &Option<DukptDerivationType>
pub fn get_dukpt_derivation_type(&self) -> &Option<DukptDerivationType>
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
.
sourcepub fn build(self) -> Result<DukptAttributes, BuildError>
pub fn build(self) -> Result<DukptAttributes, BuildError>
Consumes the builder and constructs a DukptAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DukptAttributesBuilder
impl Clone for DukptAttributesBuilder
source§fn clone(&self) -> DukptAttributesBuilder
fn clone(&self) -> DukptAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DukptAttributesBuilder
impl Debug for DukptAttributesBuilder
source§impl Default for DukptAttributesBuilder
impl Default for DukptAttributesBuilder
source§fn default() -> DukptAttributesBuilder
fn default() -> DukptAttributesBuilder
source§impl PartialEq for DukptAttributesBuilder
impl PartialEq for DukptAttributesBuilder
source§fn eq(&self, other: &DukptAttributesBuilder) -> bool
fn eq(&self, other: &DukptAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DukptAttributesBuilder
Auto Trait Implementations§
impl Freeze for DukptAttributesBuilder
impl RefUnwindSafe for DukptAttributesBuilder
impl Send for DukptAttributesBuilder
impl Sync for DukptAttributesBuilder
impl Unpin for DukptAttributesBuilder
impl UnwindSafe for DukptAttributesBuilder
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