pub struct CustomerMetrics {
pub total_customers: u64,
pub new_customers: u64,
pub returning_customers: u64,
pub average_lifetime_value: Decimal,
pub average_orders_per_customer: Decimal,
pub retention_rate_percent: Option<Decimal>,
}Expand description
Customer segment metrics
Fields§
§total_customers: u64Total customers
new_customers: u64New customers in period
returning_customers: u64Returning customers (ordered more than once)
average_lifetime_value: DecimalAverage customer lifetime value
average_orders_per_customer: DecimalAverage orders per customer
retention_rate_percent: Option<Decimal>Customer retention rate
Trait Implementations§
Source§impl Clone for CustomerMetrics
impl Clone for CustomerMetrics
Source§fn clone(&self) -> CustomerMetrics
fn clone(&self) -> CustomerMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomerMetrics
impl Debug for CustomerMetrics
Source§impl<'de> Deserialize<'de> for CustomerMetrics
impl<'de> Deserialize<'de> for CustomerMetrics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomerMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomerMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CustomerMetrics
impl Serialize for CustomerMetrics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CustomerMetrics
impl RefUnwindSafe for CustomerMetrics
impl Send for CustomerMetrics
impl Sync for CustomerMetrics
impl Unpin for CustomerMetrics
impl UnsafeUnpin for CustomerMetrics
impl UnwindSafe for CustomerMetrics
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