Struct vf_rs::dfc::builders::ProductBatchBuilder
source · pub struct ProductBatchBuilder { /* private fields */ }
Expand description
Builder for ProductBatch
.
Implementations§
source§impl ProductBatchBuilder
impl ProductBatchBuilder
pub fn batch_number<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn expiry_date<VALUE: Into<Option<DateTime<Utc>>>>( self, value: VALUE ) -> Self
pub fn production_date<VALUE: Into<Option<DateTime<Utc>>>>( self, value: VALUE ) -> Self
sourcepub fn build(self) -> Result<ProductBatch, ProductBatchBuilderError>
pub fn build(self) -> Result<ProductBatch, ProductBatchBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProductBatchBuilder
impl RefUnwindSafe for ProductBatchBuilder
impl Send for ProductBatchBuilder
impl Sync for ProductBatchBuilder
impl Unpin for ProductBatchBuilder
impl UnwindSafe for ProductBatchBuilder
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