#[non_exhaustive]pub enum Checksum {
None,
Iso7064Mod37_36,
}Expand description
Which check character, if any, to append to generated IDs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No check character. The ID body is entropy only.
Iso7064Mod37_36
ISO/IEC 7064 MOD 37,36 check character appended to the body.
Catches all single-character substitutions and all adjacent transpositions — the two dominant scanner-misread and typo modes.
Trait Implementations§
impl Copy for Checksum
Source§impl<'de> Deserialize<'de> for Checksum
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Checksum
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Checksum
impl StructuralPartialEq for Checksum
Auto Trait Implementations§
impl Freeze for Checksum
impl RefUnwindSafe for Checksum
impl Send for Checksum
impl Sync for Checksum
impl Unpin for Checksum
impl UnsafeUnpin for Checksum
impl UnwindSafe for Checksum
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