[][src]Trait gs1::epc::EPC

pub trait EPC {
    fn to_uri(&self) -> String;
fn to_tag_uri(&self) -> String;
fn get_value(&self) -> EPCValue; }

A GS1 object which is capable of being represented as an EPC.

Required methods

fn to_uri(&self) -> String

Return the EPC pure identity URI for this object.

Example: urn:epc:id:sgtin:0614141.812345.6789

fn to_tag_uri(&self) -> String

Return the EPC tag URI for this object.

This URI includes all data from the pure URI, plus tag-specific data which does not form part of the identifier.

Example: urn:epc:tag:sgtin-96:3.0614141.812345.6789

fn get_value(&self) -> EPCValue

Return the underlying EPC structure in an EPCValue tagged enum.

Loading content...

Implementors

impl EPC for SGTIN198[src]

impl EPC for SGTIN96[src]

impl EPC for SSCC96[src]

impl EPC for Unprogrammed[src]

Loading content...