pub struct Product { /* private fields */ }Implementations§
Source§impl Product
impl Product
pub fn get_id(&self) -> String
pub fn get_name(&self) -> String
pub fn get_description(&self) -> Option<String>
pub fn get_vendor(&self) -> Option<String>
pub fn get_product_type(&self) -> Option<String>
pub fn get_status(&self) -> String
pub fn get_variants(&self) -> Vec<ProductVariant>
pub fn get_created_at(&self) -> String
pub fn get_updated_at(&self) -> String
pub fn __to_string(&self) -> String
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Product
impl<'a> FromZendObject<'a> for &'a Product
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 Product
impl<'a> FromZendObjectMut<'a> for &'a mut Product
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 Product
impl<'a> FromZvalMut<'a> for &'a mut Product
Source§impl IntoZendObject for Product
impl IntoZendObject for Product
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 Product
impl IntoZval for Product
Source§impl RegisteredClass for Product
impl RegisteredClass for Product
Source§const CLASS_NAME: &'static str = "StateSet\\Product"
const CLASS_NAME: &'static str = "StateSet\\Product"
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 Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
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