pub struct Lots { /* private fields */ }Implementations§
Source§impl Lots
impl Lots
pub fn create(&self, sku: String, quantity_produced: i32) -> PhpResult<String>
pub fn get(&self, id: String) -> PhpResult<Option<String>>
pub fn list(&self) -> PhpResult<Vec<String>>
pub fn quarantine(&self, id: String, reason: String) -> PhpResult<bool>
pub fn release_quarantine(&self, id: String) -> PhpResult<bool>
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Lots
impl<'a> FromZendObject<'a> for &'a Lots
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 Lots
impl<'a> FromZendObjectMut<'a> for &'a mut Lots
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 Lots
impl<'a> FromZvalMut<'a> for &'a mut Lots
Source§impl IntoZendObject for Lots
impl IntoZendObject for Lots
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 Lots
impl IntoZval for Lots
Source§impl RegisteredClass for Lots
impl RegisteredClass for Lots
Source§const CLASS_NAME: &'static str = "StateSet\\Lots"
const CLASS_NAME: &'static str = "StateSet\\Lots"
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 Lots
impl RefUnwindSafe for Lots
impl Send for Lots
impl Sync for Lots
impl Unpin for Lots
impl UnsafeUnpin for Lots
impl UnwindSafe for Lots
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