pub struct PurchaseOrders { /* private fields */ }Implementations§
Source§impl PurchaseOrders
impl PurchaseOrders
pub fn into_reference( val: PurchaseOrders, env: Env, ) -> Result<Reference<PurchaseOrders>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<PurchaseOrders>>
Source§impl PurchaseOrders
impl PurchaseOrders
pub async fn create_supplier( &self, input: CreateSupplierInput, ) -> Result<SupplierOutput>
pub async fn get_supplier(&self, id: String) -> Result<Option<SupplierOutput>>
pub async fn list_suppliers(&self) -> Result<Vec<SupplierOutput>>
pub async fn create( &self, input: CreatePurchaseOrderInput, ) -> Result<PurchaseOrderOutput>
pub async fn get(&self, id: String) -> Result<Option<PurchaseOrderOutput>>
pub async fn list(&self) -> Result<Vec<PurchaseOrderOutput>>
pub async fn submit(&self, id: String) -> Result<PurchaseOrderOutput>
pub async fn approve( &self, id: String, approved_by: String, ) -> Result<PurchaseOrderOutput>
pub async fn send(&self, id: String) -> Result<PurchaseOrderOutput>
pub async fn cancel(&self, id: String) -> Result<PurchaseOrderOutput>
pub async fn count(&self) -> Result<u32>
Trait Implementations§
Source§impl FromNapiMutRef for PurchaseOrders
impl FromNapiMutRef for PurchaseOrders
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for PurchaseOrders
impl FromNapiRef for PurchaseOrders
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &PurchaseOrders
impl FromNapiValue for &PurchaseOrders
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl FromNapiValue for &mut PurchaseOrders
impl FromNapiValue for &mut PurchaseOrders
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ObjectFinalize for PurchaseOrders
impl ObjectFinalize for PurchaseOrders
Source§impl ToNapiValue for PurchaseOrders
impl ToNapiValue for PurchaseOrders
Source§unsafe fn to_napi_value(
env: napi_env,
val: PurchaseOrders,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: PurchaseOrders, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &PurchaseOrders
impl TypeName for &PurchaseOrders
Source§impl TypeName for &mut PurchaseOrders
impl TypeName for &mut PurchaseOrders
Source§impl TypeName for PurchaseOrders
impl TypeName for PurchaseOrders
Source§impl ValidateNapiValue for &PurchaseOrders
impl ValidateNapiValue for &PurchaseOrders
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut PurchaseOrders
impl ValidateNapiValue for &mut PurchaseOrders
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety 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