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