[][src]Struct vf_rs::dfc::ProductBatch

pub struct ProductBatch { /* fields omitted */ }

A lot or batch, defining a resource produced at the same time in the same way. From DataFoodConsortium vocabulary https://datafoodconsortium.gitbook.io/dfc-standard-documentation/.

ID: http://www.virtual-assembly.org/DataFoodConsortium/BusinessOntology#ProductBatch

Implementations

impl ProductBatch[src]

pub fn batch_number(&self) -> &String[src]

pub fn expiry_date(&self) -> &Option<DateTime<Utc>>[src]

pub fn production_date(&self) -> &Option<DateTime<Utc>>[src]

impl ProductBatch[src]

pub fn set_batch_number(&mut self, val: String) -> &mut Self[src]

pub fn set_expiry_date(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

pub fn set_production_date(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

impl ProductBatch[src]

pub fn batch_number_mut(&mut self) -> &mut String[src]

pub fn expiry_date_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

pub fn production_date_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

impl ProductBatch[src]

pub fn builder() -> ProductBatchBuilder[src]

Create an empty builder object for ProductBatch

pub fn into_builder(self) -> ProductBatchBuilder[src]

Turns ProductBatch into ProductBatchBuilder

Trait Implementations

impl Clone for ProductBatch[src]

impl Debug for ProductBatch[src]

impl<'de> Deserialize<'de> for ProductBatch[src]

impl PartialEq<ProductBatch> for ProductBatch[src]

impl Serialize for ProductBatch[src]

impl StructuralPartialEq for ProductBatch[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.