pub enum RetailPersona {
Student,
EarlyCareer,
MidCareer,
Retiree,
HighNetWorth,
GigWorker,
SeasonalWorker,
LowActivity,
}Expand description
Retail customer persona for behavioral modeling.
Variants§
Student
College/university student
EarlyCareer
Early career professional (25-35)
MidCareer
Mid-career professional (35-55)
Retiree
Retiree (55+)
HighNetWorth
High net worth individual (>$1M assets)
GigWorker
Gig economy worker / freelancer
SeasonalWorker
Seasonal worker
LowActivity
Unemployed / low activity
Implementations§
Source§impl RetailPersona
impl RetailPersona
Sourcepub fn income_range(&self) -> (u32, u32)
pub fn income_range(&self) -> (u32, u32)
Expected monthly income range (min, max) in local currency units.
Sourcepub fn transaction_frequency_range(&self) -> (u32, u32)
pub fn transaction_frequency_range(&self) -> (u32, u32)
Expected monthly transaction count range (min, max).
Sourcepub fn base_risk_score(&self) -> u8
pub fn base_risk_score(&self) -> u8
Base risk score (1-10, 10 being highest risk).
Sourcepub fn cash_intensity(&self) -> f64
pub fn cash_intensity(&self) -> f64
Typical cash usage intensity (0.0-1.0).
Trait Implementations§
Source§impl Clone for RetailPersona
impl Clone for RetailPersona
Source§fn clone(&self) -> RetailPersona
fn clone(&self) -> RetailPersona
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 Debug for RetailPersona
impl Debug for RetailPersona
Source§impl<'de> Deserialize<'de> for RetailPersona
impl<'de> Deserialize<'de> for RetailPersona
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 Hash for RetailPersona
impl Hash for RetailPersona
Source§impl PartialEq for RetailPersona
impl PartialEq for RetailPersona
Source§impl Serialize for RetailPersona
impl Serialize for RetailPersona
impl Copy for RetailPersona
impl Eq for RetailPersona
impl StructuralPartialEq for RetailPersona
Auto Trait Implementations§
impl Freeze for RetailPersona
impl RefUnwindSafe for RetailPersona
impl Send for RetailPersona
impl Sync for RetailPersona
impl Unpin for RetailPersona
impl UnwindSafe for RetailPersona
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.