Enum rxing::RXingResultMetadataValue
source · pub enum RXingResultMetadataValue {
OTHER(String),
Orientation(i32),
ByteSegments(Vec<Vec<u8>>),
ErrorCorrectionLevel(String),
IssueNumber(i32),
SuggestedPrice(String),
PossibleCountry(String),
UpcEanExtension(String),
Pdf417ExtraMetadata(Rc<PDF417RXingResultMetadata>),
StructuredAppendSequence(i32),
StructuredAppendParity(i32),
SymbologyIdentifier(String),
}Variants§
OTHER(String)
Unspecified, application-specific metadata. Maps to an unspecified {@link Object}.
Orientation(i32)
Denotes the likely approximate orientation of the barcode in the image. This value is given as degrees rotated clockwise from the normal, upright orientation. For example a 1D barcode which was found by reading top-to-bottom would be said to have orientation “90”. This key maps to an {@link Integer} whose value is in the range [0,360).
ByteSegments(Vec<Vec<u8>>)
2D barcode formats typically encode text, but allow for a sort of 'byte mode' which is sometimes used to encode binary data. While {@link RXingResult} makes available the complete raw bytes in the barcode for these formats, it does not offer the bytes from the byte segments alone.
This maps to a {@link java.util.List} of byte arrays corresponding to the raw bytes in the byte segments in the barcode, in order.
ErrorCorrectionLevel(String)
Error correction level used, if applicable. The value type depends on the format, but is typically a String.
IssueNumber(i32)
For some periodicals, indicates the issue number as an {@link Integer}.
SuggestedPrice(String)
For some products, indicates the suggested retail price in the barcode as a formatted {@link String}.
PossibleCountry(String)
For some products, the possible country of manufacture as a {@link String} denoting the ISO country code. Some map to multiple possible countries, like “US/CA”.
UpcEanExtension(String)
For some products, the extension text
Pdf417ExtraMetadata(Rc<PDF417RXingResultMetadata>)
PDF417-specific metadata
StructuredAppendSequence(i32)
If the code format supports structured append and the current scanned code is part of one then the sequence number is given with it.
StructuredAppendParity(i32)
If the code format supports structured append and the current scanned code is part of one then the parity is given with it.
SymbologyIdentifier(String)
Barcode Symbology Identifier. Note: According to the GS1 specification the identifier may have to replace a leading FNC1/GS character when prepending to the barcode content.
Trait Implementations§
source§impl Clone for RXingResultMetadataValue
impl Clone for RXingResultMetadataValue
source§fn clone(&self) -> RXingResultMetadataValue
fn clone(&self) -> RXingResultMetadataValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RXingResultMetadataValue
impl Debug for RXingResultMetadataValue
source§impl PartialEq<RXingResultMetadataValue> for RXingResultMetadataValue
impl PartialEq<RXingResultMetadataValue> for RXingResultMetadataValue
source§fn eq(&self, other: &RXingResultMetadataValue) -> bool
fn eq(&self, other: &RXingResultMetadataValue) -> bool
self and other values to be equal, and is used
by ==.impl Eq for RXingResultMetadataValue
impl StructuralEq for RXingResultMetadataValue
impl StructuralPartialEq for RXingResultMetadataValue
Auto Trait Implementations§
impl RefUnwindSafe for RXingResultMetadataValue
impl !Send for RXingResultMetadataValue
impl !Sync for RXingResultMetadataValue
impl Unpin for RXingResultMetadataValue
impl UnwindSafe for RXingResultMetadataValue
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.