pub struct InventoryItem { /* private fields */ }Implementations§
Source§impl InventoryItem
impl InventoryItem
pub fn get_id(&self) -> String
pub fn get_sku(&self) -> String
pub fn get_quantity_on_hand(&self) -> i32
pub fn get_quantity_reserved(&self) -> i32
pub fn get_quantity_available(&self) -> i32
pub fn get_reorder_point(&self) -> Option<i32>
pub fn get_reorder_quantity(&self) -> Option<i32>
pub fn get_location_id(&self) -> Option<String>
pub fn __to_string(&self) -> String
Trait Implementations§
Source§impl Clone for InventoryItem
impl Clone for InventoryItem
Source§fn clone(&self) -> InventoryItem
fn clone(&self) -> InventoryItem
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 From<InventoryItem> for InventoryItem
impl From<InventoryItem> for InventoryItem
Source§fn from(i: InventoryItem) -> Self
fn from(i: InventoryItem) -> Self
Converts to this type from the input type.
Source§impl<'a> FromZendObject<'a> for &'a InventoryItem
impl<'a> FromZendObject<'a> for &'a InventoryItem
Source§fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZendObjectMut<'a> for &'a mut InventoryItem
impl<'a> FromZendObjectMut<'a> for &'a mut InventoryItem
Source§fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZval<'a> for &'a InventoryItem
impl<'a> FromZval<'a> for &'a InventoryItem
Source§impl<'a> FromZvalMut<'a> for &'a mut InventoryItem
impl<'a> FromZvalMut<'a> for &'a mut InventoryItem
Source§impl IntoZendObject for InventoryItem
impl IntoZendObject for InventoryItem
Source§fn into_zend_object(self) -> Result<ZBox<ZendObject>>
fn into_zend_object(self) -> Result<ZBox<ZendObject>>
Attempts to convert
self into a Zend object.Source§impl IntoZval for InventoryItem
impl IntoZval for InventoryItem
Source§impl RegisteredClass for InventoryItem
impl RegisteredClass for InventoryItem
Source§const CLASS_NAME: &'static str = "StateSet\\InventoryItem"
const CLASS_NAME: &'static str = "StateSet\\InventoryItem"
PHP class name of the registered class.
Source§const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
Optional class constructor.
Source§fn get_metadata() -> &'static ClassMetadata<Self>
fn get_metadata() -> &'static ClassMetadata<Self>
Returns a reference to the class metadata, which stores the class entry
and handlers. Read more
Auto Trait Implementations§
impl Freeze for InventoryItem
impl RefUnwindSafe for InventoryItem
impl Send for InventoryItem
impl Sync for InventoryItem
impl Unpin for InventoryItem
impl UnsafeUnpin for InventoryItem
impl UnwindSafe for InventoryItem
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