pub struct Shipments { /* private fields */ }Implementations§
Source§impl Shipments
impl Shipments
pub fn create( &self, order_id: String, tracking_number: Option<String>, carrier: Option<String>, ) -> PhpResult<Shipment>
pub fn get(&self, id: String) -> PhpResult<Option<Shipment>>
pub fn get_by_tracking( &self, tracking_number: String, ) -> PhpResult<Option<Shipment>>
pub fn list(&self) -> PhpResult<Vec<Shipment>>
pub fn for_order(&self, order_id: String) -> PhpResult<Vec<Shipment>>
pub fn ship(&self, id: String) -> PhpResult<Shipment>
pub fn mark_delivered(&self, id: String) -> PhpResult<Shipment>
pub fn cancel(&self, id: String) -> PhpResult<Shipment>
pub fn count(&self) -> PhpResult<i64>
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Shipments
impl<'a> FromZendObject<'a> for &'a Shipments
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 Shipments
impl<'a> FromZendObjectMut<'a> for &'a mut Shipments
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 Shipments
impl<'a> FromZvalMut<'a> for &'a mut Shipments
Source§impl IntoZendObject for Shipments
impl IntoZendObject for Shipments
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 Shipments
impl IntoZval for Shipments
Source§impl RegisteredClass for Shipments
impl RegisteredClass for Shipments
Source§const CLASS_NAME: &'static str = "StateSet\\Shipments"
const CLASS_NAME: &'static str = "StateSet\\Shipments"
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 Shipments
impl RefUnwindSafe for Shipments
impl Send for Shipments
impl Sync for Shipments
impl Unpin for Shipments
impl UnsafeUnpin for Shipments
impl UnwindSafe for Shipments
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