pub struct ProductPerformanceOutput {
pub product_id: String,
pub sku: String,
pub name: String,
pub units_sold: u32,
pub revenue: f64,
pub previous_units_sold: u32,
pub previous_revenue: f64,
pub units_growth_percent: f64,
pub revenue_growth_percent: f64,
}Fields§
§product_id: String§sku: String§name: String§units_sold: u32§revenue: f64§previous_units_sold: u32§previous_revenue: f64§units_growth_percent: f64§revenue_growth_percent: f64Trait Implementations§
Source§impl Clone for ProductPerformanceOutput
impl Clone for ProductPerformanceOutput
Source§fn clone(&self) -> ProductPerformanceOutput
fn clone(&self) -> ProductPerformanceOutput
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 ProductPerformanceOutput
impl FromNapiValue for ProductPerformanceOutput
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 ProductPerformanceOutput
impl Serialize for ProductPerformanceOutput
Source§impl ToNapiValue for ProductPerformanceOutput
impl ToNapiValue for ProductPerformanceOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: ProductPerformanceOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ProductPerformanceOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for ProductPerformanceOutput
impl TypeName for ProductPerformanceOutput
Source§impl ValidateNapiValue for ProductPerformanceOutput
impl ValidateNapiValue for ProductPerformanceOutput
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 ProductPerformanceOutput
impl RefUnwindSafe for ProductPerformanceOutput
impl Send for ProductPerformanceOutput
impl Sync for ProductPerformanceOutput
impl Unpin for ProductPerformanceOutput
impl UnsafeUnpin for ProductPerformanceOutput
impl UnwindSafe for ProductPerformanceOutput
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