pub struct Backorders { /* private fields */ }Implementations§
Source§impl Backorders
impl Backorders
pub fn create( &self, order_id: String, sku: String, quantity: i32, expected_date: Option<String>, ) -> PhpResult<String>
pub fn get(&self, id: String) -> PhpResult<Option<String>>
pub fn list(&self) -> PhpResult<Vec<String>>
pub fn cancel(&self, id: String) -> PhpResult<bool>
pub fn count_pending(&self) -> PhpResult<i32>
Trait Implementations§
Source§impl Clone for Backorders
impl Clone for Backorders
Source§fn clone(&self) -> Backorders
fn clone(&self) -> Backorders
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 Backorders
impl<'a> FromZendObject<'a> for &'a Backorders
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 Backorders
impl<'a> FromZendObjectMut<'a> for &'a mut Backorders
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 Backorders
impl<'a> FromZval<'a> for &'a Backorders
Source§impl<'a> FromZvalMut<'a> for &'a mut Backorders
impl<'a> FromZvalMut<'a> for &'a mut Backorders
Source§impl IntoZendObject for Backorders
impl IntoZendObject for Backorders
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 Backorders
impl IntoZval for Backorders
Source§impl RegisteredClass for Backorders
impl RegisteredClass for Backorders
Source§const CLASS_NAME: &'static str = "StateSet\\Backorders"
const CLASS_NAME: &'static str = "StateSet\\Backorders"
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 Backorders
impl RefUnwindSafe for Backorders
impl Send for Backorders
impl Sync for Backorders
impl Unpin for Backorders
impl UnsafeUnpin for Backorders
impl UnwindSafe for Backorders
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