pub struct SerializedInventoryUnit { /* private fields */ }Implementations§
Source§impl SerializedInventoryUnit
impl SerializedInventoryUnit
pub const fn new( sku: Sku, serial: SerialNumber, warehouse: Warehouse, reserved: bool, ) -> Self
pub const fn try_new( sku: Sku, serial: SerialNumber, warehouse: Warehouse, reserved: bool, ) -> Result<Self, ValidationError>
pub fn sku(&self) -> <Sku as FieldAccess>::Output<'_>
pub fn serial(&self) -> <SerialNumber as FieldAccess>::Output<'_>
pub fn warehouse(&self) -> <Warehouse as FieldAccess>::Output<'_>
pub fn reserved(&self) -> <bool as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for SerializedInventoryUnit
impl Clone for SerializedInventoryUnit
Source§fn clone(&self) -> SerializedInventoryUnit
fn clone(&self) -> SerializedInventoryUnit
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 SerializedInventoryUnit
impl Debug for SerializedInventoryUnit
Source§impl PartialEq for SerializedInventoryUnit
impl PartialEq for SerializedInventoryUnit
Source§fn eq(&self, other: &SerializedInventoryUnit) -> bool
fn eq(&self, other: &SerializedInventoryUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SerializedInventoryUnit
impl StructuralPartialEq for SerializedInventoryUnit
Auto Trait Implementations§
impl Freeze for SerializedInventoryUnit
impl RefUnwindSafe for SerializedInventoryUnit
impl Send for SerializedInventoryUnit
impl Sync for SerializedInventoryUnit
impl Unpin for SerializedInventoryUnit
impl UnsafeUnpin for SerializedInventoryUnit
impl UnwindSafe for SerializedInventoryUnit
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