pub struct WarehouseApi { /* private fields */ }Implementations§
Source§impl WarehouseApi
impl WarehouseApi
pub fn create_warehouse( &self, code: String, name: String, warehouse_type: String, ) -> PhpResult<i32>
pub fn get_warehouse(&self, id: i32) -> PhpResult<Option<String>>
pub fn list_warehouses(&self) -> PhpResult<Vec<i32>>
pub fn create_location( &self, warehouse_id: i32, location_type: String, zone: Option<String>, aisle: Option<String>, ) -> PhpResult<i32>
Trait Implementations§
Source§impl Clone for WarehouseApi
impl Clone for WarehouseApi
Source§fn clone(&self) -> WarehouseApi
fn clone(&self) -> WarehouseApi
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<'a> FromZendObject<'a> for &'a WarehouseApi
impl<'a> FromZendObject<'a> for &'a WarehouseApi
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 WarehouseApi
impl<'a> FromZendObjectMut<'a> for &'a mut WarehouseApi
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 WarehouseApi
impl<'a> FromZval<'a> for &'a WarehouseApi
Source§impl<'a> FromZvalMut<'a> for &'a mut WarehouseApi
impl<'a> FromZvalMut<'a> for &'a mut WarehouseApi
Source§impl IntoZendObject for WarehouseApi
impl IntoZendObject for WarehouseApi
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 WarehouseApi
impl IntoZval for WarehouseApi
Source§impl RegisteredClass for WarehouseApi
impl RegisteredClass for WarehouseApi
Source§const CLASS_NAME: &'static str = "StateSet\\Warehouse"
const CLASS_NAME: &'static str = "StateSet\\Warehouse"
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 WarehouseApi
impl RefUnwindSafe for WarehouseApi
impl Send for WarehouseApi
impl Sync for WarehouseApi
impl Unpin for WarehouseApi
impl UnsafeUnpin for WarehouseApi
impl UnwindSafe for WarehouseApi
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