pub struct Fulfillment { /* private fields */ }Implementations§
Source§impl Fulfillment
impl Fulfillment
Source§impl Fulfillment
impl Fulfillment
pub fn into_reference( val: Fulfillment, env: Env, ) -> Result<Reference<Fulfillment>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Fulfillment>>
Source§impl Fulfillment
impl Fulfillment
Sourcepub async fn create_wave(&self, input: CreateWaveInput) -> Result<WaveOutput>
pub async fn create_wave(&self, input: CreateWaveInput) -> Result<WaveOutput>
Create a wave
Sourcepub async fn list_waves(&self) -> Result<Vec<WaveOutput>>
pub async fn list_waves(&self) -> Result<Vec<WaveOutput>>
List all waves
Sourcepub async fn release_wave(&self, id: String) -> Result<WaveOutput>
pub async fn release_wave(&self, id: String) -> Result<WaveOutput>
Release a wave for picking
Sourcepub async fn complete_wave(&self, id: String) -> Result<WaveOutput>
pub async fn complete_wave(&self, id: String) -> Result<WaveOutput>
Complete a wave
Sourcepub async fn cancel_wave(&self, id: String) -> Result<WaveOutput>
pub async fn cancel_wave(&self, id: String) -> Result<WaveOutput>
Cancel a wave
Sourcepub async fn get_pick(&self, id: String) -> Result<Option<PickTaskOutput>>
pub async fn get_pick(&self, id: String) -> Result<Option<PickTaskOutput>>
Get a pick task by ID
Sourcepub async fn list_picks(&self) -> Result<Vec<PickTaskOutput>>
pub async fn list_picks(&self) -> Result<Vec<PickTaskOutput>>
List pick tasks
Sourcepub async fn assign_pick(
&self,
id: String,
assigned_to: String,
) -> Result<PickTaskOutput>
pub async fn assign_pick( &self, id: String, assigned_to: String, ) -> Result<PickTaskOutput>
Assign a pick task
Sourcepub async fn start_pick(&self, id: String) -> Result<PickTaskOutput>
pub async fn start_pick(&self, id: String) -> Result<PickTaskOutput>
Start a pick task
Sourcepub async fn cancel_pick(&self, id: String) -> Result<PickTaskOutput>
pub async fn cancel_pick(&self, id: String) -> Result<PickTaskOutput>
Cancel a pick task
Sourcepub async fn is_order_ready_to_pack(&self, order_id: String) -> Result<bool>
pub async fn is_order_ready_to_pack(&self, order_id: String) -> Result<bool>
Check if an order is ready to pack
Sourcepub async fn is_order_ready_to_ship(&self, order_id: String) -> Result<bool>
pub async fn is_order_ready_to_ship(&self, order_id: String) -> Result<bool>
Check if an order is ready to ship
Sourcepub async fn count_waves(&self) -> Result<u32>
pub async fn count_waves(&self) -> Result<u32>
Count waves
Trait Implementations§
Source§impl FromNapiMutRef for Fulfillment
impl FromNapiMutRef for Fulfillment
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 Fulfillment
impl FromNapiRef for Fulfillment
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 &Fulfillment
impl FromNapiValue for &Fulfillment
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 Fulfillment
impl FromNapiValue for &mut Fulfillment
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 Fulfillment
impl ToNapiValue for Fulfillment
Source§unsafe fn to_napi_value(env: napi_env, val: Fulfillment) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Fulfillment) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &Fulfillment
impl TypeName for &Fulfillment
Source§impl TypeName for &mut Fulfillment
impl TypeName for &mut Fulfillment
Source§impl TypeName for Fulfillment
impl TypeName for Fulfillment
Source§impl ValidateNapiValue for &Fulfillment
impl ValidateNapiValue for &Fulfillment
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 Fulfillment
impl ValidateNapiValue for &mut Fulfillment
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 Fulfillment
impl !RefUnwindSafe for Fulfillment
impl Send for Fulfillment
impl Sync for Fulfillment
impl Unpin for Fulfillment
impl UnsafeUnpin for Fulfillment
impl !UnwindSafe for Fulfillment
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