pub struct OptionalPin(/* private fields */);
Expand description
Optional PIN, used as a parameter to Card<Transaction>::into_*_card
.
Effectively acts like a Option<SecretString>
, but with a number of From
implementations for convenience.
Trait Implementations§
Source§impl From<Option<Secret<String>>> for OptionalPin
impl From<Option<Secret<String>>> for OptionalPin
Source§fn from(value: Option<SecretString>) -> Self
fn from(value: Option<SecretString>) -> Self
Converts to this type from the input type.
Source§impl From<Secret<String>> for OptionalPin
impl From<Secret<String>> for OptionalPin
Source§fn from(value: SecretString) -> Self
fn from(value: SecretString) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptionalPin
impl RefUnwindSafe for OptionalPin
impl Send for OptionalPin
impl Sync for OptionalPin
impl Unpin for OptionalPin
impl UnwindSafe for OptionalPin
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