pub struct ProductVariant { /* private fields */ }Implementations§
Source§impl ProductVariant
impl ProductVariant
pub fn get_id(&self) -> String
pub fn get_sku(&self) -> String
pub fn get_name(&self) -> String
pub fn get_price(&self) -> f64
pub fn get_compare_at_price(&self) -> Option<f64>
pub fn get_inventory_quantity(&self) -> i32
pub fn get_weight(&self) -> Option<f64>
pub fn get_barcode(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for ProductVariant
impl Clone for ProductVariant
Source§fn clone(&self) -> ProductVariant
fn clone(&self) -> ProductVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> FromZendObject<'a> for &'a ProductVariant
impl<'a> FromZendObject<'a> for &'a ProductVariant
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 ProductVariant
impl<'a> FromZendObjectMut<'a> for &'a mut ProductVariant
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> FromZval<'a> for &'a ProductVariant
impl<'a> FromZval<'a> for &'a ProductVariant
Source§impl<'a> FromZvalMut<'a> for &'a mut ProductVariant
impl<'a> FromZvalMut<'a> for &'a mut ProductVariant
Source§impl IntoZendObject for ProductVariant
impl IntoZendObject for ProductVariant
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 ProductVariant
impl IntoZval for ProductVariant
Source§impl RegisteredClass for ProductVariant
impl RegisteredClass for ProductVariant
Source§const CLASS_NAME: &'static str = "StateSet\\ProductVariant"
const CLASS_NAME: &'static str = "StateSet\\ProductVariant"
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 ProductVariant
impl RefUnwindSafe for ProductVariant
impl Send for ProductVariant
impl Sync for ProductVariant
impl Unpin for ProductVariant
impl UnsafeUnpin for ProductVariant
impl UnwindSafe for ProductVariant
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