pub struct VirtualInventoryModel { /* private fields */ }Available on crate feature
model only.Expand description
Virtual Inventory Model.
An off-chain encapsulation of the on-chain VirtualInventory account.
This encapsulation uses Copy-On-Write (COW) semantics via Arc to allow
efficient cloning while enabling mutations when needed.
Implementations§
Source§impl VirtualInventoryModel
impl VirtualInventoryModel
Sourcepub fn from_parts(virtual_inventory: Arc<VirtualInventory>) -> Self
pub fn from_parts(virtual_inventory: Arc<VirtualInventory>) -> Self
Create from parts.
Trait Implementations§
Source§impl Clone for VirtualInventoryModel
impl Clone for VirtualInventoryModel
Source§fn clone(&self) -> VirtualInventoryModel
fn clone(&self) -> VirtualInventoryModel
Returns a duplicate of the value. Read more
1.0.0 · 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 VirtualInventoryModel
impl Debug for VirtualInventoryModel
Auto Trait Implementations§
impl Freeze for VirtualInventoryModel
impl RefUnwindSafe for VirtualInventoryModel
impl Send for VirtualInventoryModel
impl Sync for VirtualInventoryModel
impl Unpin for VirtualInventoryModel
impl UnwindSafe for VirtualInventoryModel
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