pub struct InventoryItemOutput {
pub id: i64,
pub sku: String,
pub name: String,
pub description: Option<String>,
pub unit_of_measure: String,
pub is_active: bool,
}Fields§
§id: i64§sku: String§name: String§description: Option<String>§unit_of_measure: String§is_active: boolTrait Implementations§
Source§impl Clone for InventoryItemOutput
impl Clone for InventoryItemOutput
Source§fn clone(&self) -> InventoryItemOutput
fn clone(&self) -> InventoryItemOutput
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 InventoryItemOutput
impl<'de> Deserialize<'de> for InventoryItemOutput
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 From<InventoryItem> for InventoryItemOutput
impl From<InventoryItem> for InventoryItemOutput
Source§fn from(i: InventoryItem) -> Self
fn from(i: InventoryItem) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for InventoryItemOutput
impl FromNapiValue for InventoryItemOutput
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 InventoryItemOutput
impl Serialize for InventoryItemOutput
Source§impl ToNapiValue for InventoryItemOutput
impl ToNapiValue for InventoryItemOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: InventoryItemOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: InventoryItemOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for InventoryItemOutput
impl TypeName for InventoryItemOutput
Source§impl ValidateNapiValue for InventoryItemOutput
impl ValidateNapiValue for InventoryItemOutput
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 InventoryItemOutput
impl RefUnwindSafe for InventoryItemOutput
impl Send for InventoryItemOutput
impl Sync for InventoryItemOutput
impl Unpin for InventoryItemOutput
impl UnsafeUnpin for InventoryItemOutput
impl UnwindSafe for InventoryItemOutput
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