pub struct OrderOutput {Show 13 fields
pub id: String,
pub order_number: String,
pub customer_id: String,
pub status: String,
pub total_amount: f64,
pub currency: String,
pub payment_status: String,
pub fulfillment_status: String,
pub tracking_number: Option<String>,
pub items: Vec<OrderItemOutput>,
pub version: i32,
pub created_at: String,
pub updated_at: String,
}Fields§
§id: String§order_number: String§customer_id: String§status: String§total_amount: f64§currency: String§payment_status: String§fulfillment_status: String§tracking_number: Option<String>§items: Vec<OrderItemOutput>§version: i32§created_at: String§updated_at: StringTrait Implementations§
Source§impl Clone for OrderOutput
impl Clone for OrderOutput
Source§fn clone(&self) -> OrderOutput
fn clone(&self) -> OrderOutput
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 OrderOutput
impl<'de> Deserialize<'de> for OrderOutput
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<Order> for OrderOutput
impl From<Order> for OrderOutput
Source§impl FromNapiValue for OrderOutput
impl FromNapiValue for OrderOutput
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 OrderOutput
impl Serialize for OrderOutput
Source§impl ToNapiValue for OrderOutput
impl ToNapiValue for OrderOutput
Source§unsafe fn to_napi_value(env: napi_env, val: OrderOutput) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: OrderOutput) -> Result<napi_value>
Safety Read more
Source§impl TypeName for OrderOutput
impl TypeName for OrderOutput
Source§impl ValidateNapiValue for OrderOutput
impl ValidateNapiValue for OrderOutput
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 OrderOutput
impl RefUnwindSafe for OrderOutput
impl Send for OrderOutput
impl Sync for OrderOutput
impl Unpin for OrderOutput
impl UnsafeUnpin for OrderOutput
impl UnwindSafe for OrderOutput
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