pub struct PurchaseOrders { /* private fields */ }Implementations§
Source§impl PurchaseOrders
impl PurchaseOrders
pub fn create_supplier( &self, name: String, email: Option<String>, phone: Option<String>, ) -> PhpResult<Supplier>
pub fn get_supplier(&self, id: String) -> PhpResult<Option<Supplier>>
pub fn list_suppliers(&self) -> PhpResult<Vec<Supplier>>
pub fn create( &self, supplier_id: String, currency: Option<String>, ) -> PhpResult<PurchaseOrder>
pub fn get(&self, id: String) -> PhpResult<Option<PurchaseOrder>>
pub fn list(&self) -> PhpResult<Vec<PurchaseOrder>>
pub fn submit(&self, id: String) -> PhpResult<PurchaseOrder>
pub fn approve(&self, id: String) -> PhpResult<PurchaseOrder>
pub fn cancel(&self, id: String) -> PhpResult<PurchaseOrder>
pub fn complete(&self, id: String) -> PhpResult<PurchaseOrder>
pub fn count(&self) -> PhpResult<i64>
Trait Implementations§
Source§impl Clone for PurchaseOrders
impl Clone for PurchaseOrders
Source§fn clone(&self) -> PurchaseOrders
fn clone(&self) -> PurchaseOrders
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 PurchaseOrders
impl<'a> FromZendObject<'a> for &'a PurchaseOrders
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 PurchaseOrders
impl<'a> FromZendObjectMut<'a> for &'a mut PurchaseOrders
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 PurchaseOrders
impl<'a> FromZval<'a> for &'a PurchaseOrders
Source§impl<'a> FromZvalMut<'a> for &'a mut PurchaseOrders
impl<'a> FromZvalMut<'a> for &'a mut PurchaseOrders
Source§impl IntoZendObject for PurchaseOrders
impl IntoZendObject for PurchaseOrders
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 PurchaseOrders
impl IntoZval for PurchaseOrders
Source§impl RegisteredClass for PurchaseOrders
impl RegisteredClass for PurchaseOrders
Source§const CLASS_NAME: &'static str = "StateSet\\PurchaseOrders"
const CLASS_NAME: &'static str = "StateSet\\PurchaseOrders"
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 PurchaseOrders
impl RefUnwindSafe for PurchaseOrders
impl Send for PurchaseOrders
impl Sync for PurchaseOrders
impl Unpin for PurchaseOrders
impl UnsafeUnpin for PurchaseOrders
impl UnwindSafe for PurchaseOrders
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