pub struct LotOutput {
pub id: String,
pub lot_number: String,
pub sku: String,
pub quantity_produced: f64,
pub quantity_available: f64,
pub quantity_reserved: f64,
pub status: String,
pub production_date: Option<String>,
pub expiration_date: Option<String>,
pub created_at: String,
}Fields§
§id: String§lot_number: String§sku: String§quantity_produced: f64§quantity_available: f64§quantity_reserved: f64§status: String§production_date: Option<String>§expiration_date: Option<String>§created_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for LotOutput
impl<'de> Deserialize<'de> for LotOutput
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 LotOutput
impl FromNapiValue for LotOutput
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 LotOutput
impl ToNapiValue for LotOutput
Source§unsafe fn to_napi_value(env: napi_env, val: LotOutput) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: LotOutput) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for LotOutput
impl ValidateNapiValue for LotOutput
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 LotOutput
impl RefUnwindSafe for LotOutput
impl Send for LotOutput
impl Sync for LotOutput
impl Unpin for LotOutput
impl UnsafeUnpin for LotOutput
impl UnwindSafe for LotOutput
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