pub struct WorkOrders { /* private fields */ }Implementations§
Source§impl WorkOrders
impl WorkOrders
Source§impl WorkOrders
impl WorkOrders
pub fn into_reference( val: WorkOrders, env: Env, ) -> Result<Reference<WorkOrders>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<WorkOrders>>
Source§impl WorkOrders
impl WorkOrders
pub async fn create( &self, input: CreateWorkOrderInput, ) -> Result<WorkOrderOutput>
pub async fn get(&self, id: String) -> Result<Option<WorkOrderOutput>>
pub async fn list(&self) -> Result<Vec<WorkOrderOutput>>
pub async fn start(&self, id: String) -> Result<WorkOrderOutput>
pub async fn complete( &self, id: String, quantity_completed: f64, ) -> Result<WorkOrderOutput>
pub async fn cancel(&self, id: String) -> Result<WorkOrderOutput>
pub async fn count(&self) -> Result<u32>
Trait Implementations§
Source§impl FromNapiMutRef for WorkOrders
impl FromNapiMutRef for WorkOrders
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 WorkOrders
impl FromNapiRef for WorkOrders
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 &WorkOrders
impl FromNapiValue for &WorkOrders
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 WorkOrders
impl FromNapiValue for &mut WorkOrders
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 ToNapiValue for WorkOrders
impl ToNapiValue for WorkOrders
Source§unsafe fn to_napi_value(env: napi_env, val: WorkOrders) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: WorkOrders) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &WorkOrders
impl TypeName for &WorkOrders
Source§impl TypeName for &mut WorkOrders
impl TypeName for &mut WorkOrders
Source§impl TypeName for WorkOrders
impl TypeName for WorkOrders
Source§impl ValidateNapiValue for &WorkOrders
impl ValidateNapiValue for &WorkOrders
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 WorkOrders
impl ValidateNapiValue for &mut WorkOrders
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 WorkOrders
impl !RefUnwindSafe for WorkOrders
impl Send for WorkOrders
impl Sync for WorkOrders
impl Unpin for WorkOrders
impl UnsafeUnpin for WorkOrders
impl !UnwindSafe for WorkOrders
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