#[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<Symbology, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Symbology, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Symbology
Source§impl Serialize for Symbology
impl Serialize for Symbology
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<T> Brush for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.