pub struct EPCISDocument {
pub context: Value,
pub id: Option<String>,
pub type: String,
pub schema_version: String,
pub creation_date: DateTime<Utc>,
pub epcis_header: Option<EPCISHeader>,
pub epcis_body: EPCISBody,
pub extensions: Map<String, Value>,
}Expand description
Represents the top-level EPCIS 2.0 JSON-LD Document.
Fields§
§context: ValueContext property containing schema mappings for JSON-LD compliance.
id: Option<String>Document identifier (optional).
type: StringType identifier, always “EPCISDocument”.
schema_version: StringSchema version, typically “2.0”.
creation_date: DateTime<Utc>Creation timestamp of this document.
epcis_header: Option<EPCISHeader>Header containing master data vocabulary context (optional).
epcis_body: EPCISBodyBody containing the list of actual tracking events.
extensions: Map<String, Value>Extension elements.
Implementations§
Source§impl EPCISDocument
impl EPCISDocument
Sourcepub fn new(event_list: Vec<EPCISEvent>) -> Self
pub fn new(event_list: Vec<EPCISEvent>) -> Self
Creates a standard EPCIS 2.0 document from a list of events.
Trait Implementations§
Source§impl Clone for EPCISDocument
impl Clone for EPCISDocument
Source§fn clone(&self) -> EPCISDocument
fn clone(&self) -> EPCISDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EPCISDocument
impl Debug for EPCISDocument
Source§impl<'de> Deserialize<'de> for EPCISDocument
impl<'de> Deserialize<'de> for EPCISDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EPCISDocument
impl RefUnwindSafe for EPCISDocument
impl Send for EPCISDocument
impl Sync for EPCISDocument
impl Unpin for EPCISDocument
impl UnsafeUnpin for EPCISDocument
impl UnwindSafe for EPCISDocument
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