pub enum CashIntensity {
VeryLow,
Low,
Moderate,
High,
VeryHigh,
}Expand description
Cash intensity classification.
Variants§
VeryLow
Very low cash usage (<5%)
Low
Low cash usage (5-15%)
Moderate
Moderate cash usage (15-30%)
High
High cash usage (30-50%)
VeryHigh
Very high cash usage (>50%)
Implementations§
Source§impl CashIntensity
impl CashIntensity
Sourcepub fn risk_weight(&self) -> f64
pub fn risk_weight(&self) -> f64
Risk weight (1.0 = standard).
Sourcepub fn expected_percentage(&self) -> (f64, f64)
pub fn expected_percentage(&self) -> (f64, f64)
Expected cash transaction percentage.
Trait Implementations§
Source§impl Clone for CashIntensity
impl Clone for CashIntensity
Source§fn clone(&self) -> CashIntensity
fn clone(&self) -> CashIntensity
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 CashIntensity
impl Debug for CashIntensity
Source§impl Default for CashIntensity
impl Default for CashIntensity
Source§fn default() -> CashIntensity
fn default() -> CashIntensity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CashIntensity
impl<'de> Deserialize<'de> for CashIntensity
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 CashIntensity
impl Hash for CashIntensity
Source§impl PartialEq for CashIntensity
impl PartialEq for CashIntensity
Source§impl Serialize for CashIntensity
impl Serialize for CashIntensity
impl Copy for CashIntensity
impl Eq for CashIntensity
impl StructuralPartialEq for CashIntensity
Auto Trait Implementations§
impl Freeze for CashIntensity
impl RefUnwindSafe for CashIntensity
impl Send for CashIntensity
impl Sync for CashIntensity
impl Unpin for CashIntensity
impl UnwindSafe for CashIntensity
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.