pub struct SalesSummaryOutput {
pub total_revenue: f64,
pub order_count: u32,
pub average_order_value: f64,
pub items_sold: u32,
pub unique_customers: u32,
}Fields§
§total_revenue: f64§order_count: u32§average_order_value: f64§items_sold: u32§unique_customers: u32Trait Implementations§
Source§impl Clone for SalesSummaryOutput
impl Clone for SalesSummaryOutput
Source§fn clone(&self) -> SalesSummaryOutput
fn clone(&self) -> SalesSummaryOutput
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 FromNapiValue for SalesSummaryOutput
impl FromNapiValue for SalesSummaryOutput
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 SalesSummaryOutput
impl Serialize for SalesSummaryOutput
Source§impl ToNapiValue for SalesSummaryOutput
impl ToNapiValue for SalesSummaryOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: SalesSummaryOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: SalesSummaryOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for SalesSummaryOutput
impl TypeName for SalesSummaryOutput
Source§impl ValidateNapiValue for SalesSummaryOutput
impl ValidateNapiValue for SalesSummaryOutput
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 SalesSummaryOutput
impl RefUnwindSafe for SalesSummaryOutput
impl Send for SalesSummaryOutput
impl Sync for SalesSummaryOutput
impl Unpin for SalesSummaryOutput
impl UnsafeUnpin for SalesSummaryOutput
impl UnwindSafe for SalesSummaryOutput
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