pub struct ReservationOutput {
pub id: String,
pub item_id: i64,
pub quantity: f64,
pub status: String,
}Fields§
§id: String§item_id: i64§quantity: f64§status: StringTrait Implementations§
Source§impl Clone for ReservationOutput
impl Clone for ReservationOutput
Source§fn clone(&self) -> ReservationOutput
fn clone(&self) -> ReservationOutput
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 ReservationOutput
impl<'de> Deserialize<'de> for ReservationOutput
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<InventoryReservation> for ReservationOutput
impl From<InventoryReservation> for ReservationOutput
Source§fn from(r: InventoryReservation) -> Self
fn from(r: InventoryReservation) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for ReservationOutput
impl FromNapiValue for ReservationOutput
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 ReservationOutput
impl Serialize for ReservationOutput
Source§impl ToNapiValue for ReservationOutput
impl ToNapiValue for ReservationOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: ReservationOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ReservationOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for ReservationOutput
impl TypeName for ReservationOutput
Source§impl ValidateNapiValue for ReservationOutput
impl ValidateNapiValue for ReservationOutput
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 ReservationOutput
impl RefUnwindSafe for ReservationOutput
impl Send for ReservationOutput
impl Sync for ReservationOutput
impl Unpin for ReservationOutput
impl UnsafeUnpin for ReservationOutput
impl UnwindSafe for ReservationOutput
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