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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The error type produced by a failed conversion.
Convert the given value into an approximately equivalent representation.
The error type produced by a failed conversion.
Convert the subject into an approximately equivalent representation.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Approximate the subject with the default scheme.
Approximate the subject with a specific scheme.
Approximate the subject to a given type with the default scheme.
Approximate the subject to a given type with a specific scheme.
Convert the subject to a given type.
Attempt to convert the subject to a given type.
Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The error type produced by a failed conversion.
Convert the given value into the subject type.
The type returned in the event of a conversion error.
Performs the conversion.
The error type produced by a failed conversion.
Convert the subject into the destination type.
The type returned in the event of a conversion error.
Performs the conversion.
The error type produced by a failed conversion.
Convert the given value into an exactly equivalent representation.
The error type produced by a failed conversion.
Convert the subject into an exactly equivalent representation.