pub struct Products { /* private fields */ }Implementations§
Source§impl Products
impl Products
pub fn create( &self, name: String, description: Option<String>, vendor: Option<String>, product_type: Option<String>, ) -> PhpResult<Product>
pub fn get(&self, id: String) -> PhpResult<Option<Product>>
pub fn list(&self) -> PhpResult<Vec<Product>>
pub fn count(&self) -> PhpResult<i64>
pub fn get_by_sku(&self, sku: String) -> PhpResult<Option<ProductVariant>>
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Products
impl<'a> FromZendObject<'a> for &'a Products
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 Products
impl<'a> FromZendObjectMut<'a> for &'a mut Products
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 Products
impl<'a> FromZvalMut<'a> for &'a mut Products
Source§impl IntoZendObject for Products
impl IntoZendObject for Products
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 Products
impl IntoZval for Products
Source§impl RegisteredClass for Products
impl RegisteredClass for Products
Source§const CLASS_NAME: &'static str = "StateSet\\Products"
const CLASS_NAME: &'static str = "StateSet\\Products"
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 Products
impl RefUnwindSafe for Products
impl Send for Products
impl Sync for Products
impl Unpin for Products
impl UnsafeUnpin for Products
impl UnwindSafe for Products
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