pub struct GTIN {
pub company: u64,
pub company_digits: usize,
pub item: u64,
pub indicator: u8,
}
Expand description
Global Trade Item Number
This is the most-used GS1 identifier, and is a superset of UPC, EAN, and ISBN codes.
GS1 General Specifications Section 3.3.2
Number of digits in the decimal representation of the company identifier
Item (product) identifier
Indicator digit in case of GTIN-14, otherwise zero
Formats the value using the given formatter.
Read more
Return the GS1 element string for this object.
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.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
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 type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.