pub struct Quality { /* private fields */ }Implementations§
Source§impl Quality
impl Quality
pub fn create_inspection( &self, inspection_type: String, reference_type: String, reference_id: String, ) -> PhpResult<String>
pub fn list_inspections(&self) -> PhpResult<Vec<String>>
pub fn create_hold( &self, sku: String, quantity: i32, reason: String, hold_type: String, ) -> PhpResult<String>
pub fn release_hold(&self, id: String, released_by: String) -> PhpResult<bool>
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Quality
impl<'a> FromZendObject<'a> for &'a Quality
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 Quality
impl<'a> FromZendObjectMut<'a> for &'a mut Quality
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> FromZvalMut<'a> for &'a mut Quality
impl<'a> FromZvalMut<'a> for &'a mut Quality
Source§impl IntoZendObject for Quality
impl IntoZendObject for Quality
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 Quality
impl IntoZval for Quality
Source§impl RegisteredClass for Quality
impl RegisteredClass for Quality
Source§const CLASS_NAME: &'static str = "StateSet\\Quality"
const CLASS_NAME: &'static str = "StateSet\\Quality"
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 Quality
impl RefUnwindSafe for Quality
impl Send for Quality
impl Sync for Quality
impl Unpin for Quality
impl UnsafeUnpin for Quality
impl UnwindSafe for Quality
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