#[non_exhaustive]pub enum Symbology {
Code128,
Code39,
Ean13,
Ean8,
UpcA,
Itf,
Qr,
}Expand description
A barcode format.
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.
Code128
Code 128: any printable ASCII text, compact for digits.
Code39
Code 39: capitals, digits and -. $/+%.
Ean13
EAN-13: 12 digits, or 13 with the check digit.
Ean8
EAN-8: 7 digits, or 8 with the check digit.
UpcA
UPC-A: 11 digits, or 12 with the check digit.
Itf
Interleaved 2 of 5: an even number of digits.
Qr
QR Code: any text.
Trait Implementations§
impl Copy for Symbology
Source§impl<'de> Deserialize<'de> for Symbology
impl<'de> Deserialize<'de> for Symbology
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 Symbology
impl StructuralPartialEq for Symbology
Auto Trait Implementations§
impl Freeze for Symbology
impl RefUnwindSafe for Symbology
impl Send for Symbology
impl Sync for Symbology
impl Unpin for Symbology
impl UnsafeUnpin for Symbology
impl UnwindSafe for Symbology
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