Struct google_api_proto::google::cloud::documentai::v1beta3::Barcode
source · pub struct Barcode {
pub format: String,
pub value_format: String,
pub raw_value: String,
}
Expand description
Encodes the detailed information of a barcode.
Fields§
§format: String
Format of a barcode. The supported formats are:
CODE_128
: Code 128 type.CODE_39
: Code 39 type.CODE_93
: Code 93 type.CODABAR
: Codabar type.DATA_MATRIX
: 2D Data Matrix type.ITF
: ITF type.EAN_13
: EAN-13 type.EAN_8
: EAN-8 type.QR_CODE
: 2D QR code type.UPC_A
: UPC-A type.UPC_E
: UPC-E type.PDF417
: PDF417 type.AZTEC
: 2D Aztec code type.DATABAR
: GS1 DataBar code type.
value_format: String
Value format describes the format of the value that a barcode encodes. The supported formats are:
CONTACT_INFO
: Contact information.EMAIL
: Email address.ISBN
: ISBN identifier.PHONE
: Phone number.PRODUCT
: Product.SMS
: SMS message.TEXT
: Text string.URL
: URL address.WIFI
: Wifi information.GEO
: Geo-localization.CALENDAR_EVENT
: Calendar event.DRIVER_LICENSE
: Driver’s license.
raw_value: String
Raw value encoded in the barcode.
For example: 'MEBKM:TITLE:Google;URL:<https://www.google.com;;'
.>
Trait Implementations§
source§impl Message for Barcode
impl Message for Barcode
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for Barcode
impl PartialEq for Barcode
impl StructuralPartialEq for Barcode
Auto Trait Implementations§
impl Freeze for Barcode
impl RefUnwindSafe for Barcode
impl Send for Barcode
impl Sync for Barcode
impl Unpin for Barcode
impl UnwindSafe for Barcode
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request