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