pub struct CustomerMetricsOutput {
pub total_customers: u32,
pub new_customers: u32,
pub returning_customers: u32,
pub average_lifetime_value: f64,
pub average_orders_per_customer: f64,
}Fields§
§total_customers: u32§new_customers: u32§returning_customers: u32§average_lifetime_value: f64§average_orders_per_customer: f64Trait Implementations§
Source§impl Clone for CustomerMetricsOutput
impl Clone for CustomerMetricsOutput
Source§fn clone(&self) -> CustomerMetricsOutput
fn clone(&self) -> CustomerMetricsOutput
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 CustomerMetricsOutput
impl FromNapiValue for CustomerMetricsOutput
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 CustomerMetricsOutput
impl Serialize for CustomerMetricsOutput
Source§impl ToNapiValue for CustomerMetricsOutput
impl ToNapiValue for CustomerMetricsOutput
Source§unsafe fn to_napi_value(
env: napi_env,
val: CustomerMetricsOutput,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: CustomerMetricsOutput, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for CustomerMetricsOutput
impl TypeName for CustomerMetricsOutput
Source§impl ValidateNapiValue for CustomerMetricsOutput
impl ValidateNapiValue for CustomerMetricsOutput
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 CustomerMetricsOutput
impl RefUnwindSafe for CustomerMetricsOutput
impl Send for CustomerMetricsOutput
impl Sync for CustomerMetricsOutput
impl Unpin for CustomerMetricsOutput
impl UnsafeUnpin for CustomerMetricsOutput
impl UnwindSafe for CustomerMetricsOutput
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