pub struct NormalizedCode(/* private fields */);Expand description
A one-time code after normalization (whitespace/hyphen stripped, uppercased).
Constructed only via crate::code::normalize() + validation so it is
impossible to confuse raw user input with the canonical form used for
HMAC derivation.
Implementations§
Trait Implementations§
Source§impl Clone for NormalizedCode
impl Clone for NormalizedCode
Source§fn clone(&self) -> NormalizedCode
fn clone(&self) -> NormalizedCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedCode
impl Debug for NormalizedCode
Source§impl Display for NormalizedCode
impl Display for NormalizedCode
impl Eq for NormalizedCode
Source§impl PartialEq for NormalizedCode
impl PartialEq for NormalizedCode
Source§fn eq(&self, other: &NormalizedCode) -> bool
fn eq(&self, other: &NormalizedCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NormalizedCode
Auto Trait Implementations§
impl Freeze for NormalizedCode
impl RefUnwindSafe for NormalizedCode
impl Send for NormalizedCode
impl Sync for NormalizedCode
impl Unpin for NormalizedCode
impl UnsafeUnpin for NormalizedCode
impl UnwindSafe for NormalizedCode
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