pub struct Cart { /* private fields */ }Implementations§
Source§impl Cart
impl Cart
pub fn get_id(&self) -> String
pub fn get_customer_id(&self) -> Option<String>
pub fn get_status(&self) -> String
pub fn get_items(&self) -> Vec<CartItem>
pub fn get_subtotal(&self) -> f64
pub fn get_total(&self) -> f64
pub fn get_currency(&self) -> String
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 Cart
impl<'a> FromZendObject<'a> for &'a Cart
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 Cart
impl<'a> FromZendObjectMut<'a> for &'a mut Cart
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 Cart
impl<'a> FromZvalMut<'a> for &'a mut Cart
Source§impl IntoZendObject for Cart
impl IntoZendObject for Cart
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 Cart
impl IntoZval for Cart
Source§impl RegisteredClass for Cart
impl RegisteredClass for Cart
Source§const CLASS_NAME: &'static str = "StateSet\\Cart"
const CLASS_NAME: &'static str = "StateSet\\Cart"
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 Cart
impl RefUnwindSafe for Cart
impl Send for Cart
impl Sync for Cart
impl Unpin for Cart
impl UnsafeUnpin for Cart
impl UnwindSafe for Cart
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