pub enum UserPersona {
JuniorAccountant,
SeniorAccountant,
Controller,
Manager,
Executive,
AutomatedSystem,
ExternalAuditor,
FraudActor,
}Expand description
User persona classification for behavioral modeling.
Different personas exhibit different transaction patterns, timing, error rates, and access to accounts/functions.
Variants§
JuniorAccountant
Entry-level accountant with limited access
SeniorAccountant
Experienced accountant with broader access
Controller
Financial controller with approval authority
Manager
Management with override capabilities
Executive
CFO/Finance Director with full access
AutomatedSystem
Automated batch job or interface
ExternalAuditor
External auditor with read access
FraudActor
Fraud actor for simulation scenarios
Implementations§
Source§impl UserPersona
impl UserPersona
Check if this persona has approval authority.
Sourcepub fn error_rate(&self) -> f64
pub fn error_rate(&self) -> f64
Get typical error rate for this persona (0.0-1.0).
Sourcepub fn typical_daily_volume(&self) -> (u32, u32)
pub fn typical_daily_volume(&self) -> (u32, u32)
Get typical transaction volume per day.
Sourcepub fn approval_threshold(&self) -> Option<f64>
pub fn approval_threshold(&self) -> Option<f64>
Get approval threshold amount.
Trait Implementations§
Source§impl Clone for UserPersona
impl Clone for UserPersona
Source§fn clone(&self) -> UserPersona
fn clone(&self) -> UserPersona
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 UserPersona
impl Debug for UserPersona
Source§impl Default for UserPersona
impl Default for UserPersona
Source§fn default() -> UserPersona
fn default() -> UserPersona
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserPersona
impl<'de> Deserialize<'de> for UserPersona
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 UserPersona
impl Hash for UserPersona
Source§impl PartialEq for UserPersona
impl PartialEq for UserPersona
Source§impl Serialize for UserPersona
impl Serialize for UserPersona
impl Copy for UserPersona
impl Eq for UserPersona
impl StructuralPartialEq for UserPersona
Auto Trait Implementations§
impl Freeze for UserPersona
impl RefUnwindSafe for UserPersona
impl Send for UserPersona
impl Sync for UserPersona
impl Unpin for UserPersona
impl UnwindSafe for UserPersona
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.