pub struct CreateInventoryItemInput {
pub sku: String,
pub name: String,
pub description: Option<String>,
pub initial_quantity: Option<f64>,
pub reorder_point: Option<f64>,
}Fields§
§sku: String§name: String§description: Option<String>§initial_quantity: Option<f64>§reorder_point: Option<f64>Trait Implementations§
Source§impl Clone for CreateInventoryItemInput
impl Clone for CreateInventoryItemInput
Source§fn clone(&self) -> CreateInventoryItemInput
fn clone(&self) -> CreateInventoryItemInput
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<'de> Deserialize<'de> for CreateInventoryItemInput
impl<'de> Deserialize<'de> for CreateInventoryItemInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromNapiValue for CreateInventoryItemInput
impl FromNapiValue for CreateInventoryItemInput
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 Serialize for CreateInventoryItemInput
impl Serialize for CreateInventoryItemInput
Source§impl ToNapiValue for CreateInventoryItemInput
impl ToNapiValue for CreateInventoryItemInput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CreateInventoryItemInput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CreateInventoryItemInput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CreateInventoryItemInput
impl TypeName for CreateInventoryItemInput
Source§impl ValidateNapiValue for CreateInventoryItemInput
impl ValidateNapiValue for CreateInventoryItemInput
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for CreateInventoryItemInput
impl RefUnwindSafe for CreateInventoryItemInput
impl Send for CreateInventoryItemInput
impl Sync for CreateInventoryItemInput
impl Unpin for CreateInventoryItemInput
impl UnsafeUnpin for CreateInventoryItemInput
impl UnwindSafe for CreateInventoryItemInput
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