pub struct Nnin(/* private fields */);Expand description
A validated Norwegian national identity number (fødselsnummer or D-number).
Accepts 11-digit strings, optionally with a dash at position 6. Validates both modulo-11 control digits. Stored as 11 digits without separator.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nnin
impl<'de> Deserialize<'de> for Nnin
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Nnin
impl StructuralPartialEq for Nnin
Auto Trait Implementations§
impl Freeze for Nnin
impl RefUnwindSafe for Nnin
impl Send for Nnin
impl Sync for Nnin
impl Unpin for Nnin
impl UnsafeUnpin for Nnin
impl UnwindSafe for Nnin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.