[−][src]Struct vf_rs::dfc::ProductBatch
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]
fn clone(&self) -> ProductBatch
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ProductBatch
[src]
impl<'de> Deserialize<'de> for ProductBatch
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<ProductBatch> for ProductBatch
[src]
fn eq(&self, other: &ProductBatch) -> bool
[src]
fn ne(&self, other: &ProductBatch) -> bool
[src]
impl Serialize for ProductBatch
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for ProductBatch
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProductBatch
impl Send for ProductBatch
impl Sync for ProductBatch
impl Unpin for ProductBatch
impl UnwindSafe for ProductBatch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,