pub struct MerchantCategoryCode(pub u16);Expand description
Merchant Category Code (MCC) classification.
Tuple Fields§
§0: u16Implementations§
Source§impl MerchantCategoryCode
impl MerchantCategoryCode
pub const GROCERY_STORES: Self
pub const RESTAURANTS: Self
pub const GAS_STATIONS: Self
pub const AIRLINES: Self
pub const HOTELS: Self
pub const CAR_RENTAL: Self
pub const DEPARTMENT_STORES: Self
pub const DRUG_STORES: Self
pub const UTILITIES: Self
pub const TELECOM: Self
pub const INSURANCE: Self
pub const MEDICAL: Self
pub const EDUCATION: Self
pub const GOVERNMENT: Self
pub const MONEY_TRANSFER: Self
pub const WIRE_TRANSFER: Self
pub const GAMBLING: Self
pub const CRYPTO: Self
Sourcepub fn risk_weight(&self) -> f64
pub fn risk_weight(&self) -> f64
Risk weight for AML scoring.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Category description.
Sourcepub fn is_high_risk(&self) -> bool
pub fn is_high_risk(&self) -> bool
Whether this is a high-risk MCC.
Trait Implementations§
Source§impl Clone for MerchantCategoryCode
impl Clone for MerchantCategoryCode
Source§fn clone(&self) -> MerchantCategoryCode
fn clone(&self) -> MerchantCategoryCode
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 MerchantCategoryCode
impl Debug for MerchantCategoryCode
Source§impl Default for MerchantCategoryCode
impl Default for MerchantCategoryCode
Source§impl<'de> Deserialize<'de> for MerchantCategoryCode
impl<'de> Deserialize<'de> for MerchantCategoryCode
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 MerchantCategoryCode
impl Hash for MerchantCategoryCode
Source§impl PartialEq for MerchantCategoryCode
impl PartialEq for MerchantCategoryCode
Source§impl Serialize for MerchantCategoryCode
impl Serialize for MerchantCategoryCode
impl Copy for MerchantCategoryCode
impl Eq for MerchantCategoryCode
impl StructuralPartialEq for MerchantCategoryCode
Auto Trait Implementations§
impl Freeze for MerchantCategoryCode
impl RefUnwindSafe for MerchantCategoryCode
impl Send for MerchantCategoryCode
impl Sync for MerchantCategoryCode
impl Unpin for MerchantCategoryCode
impl UnwindSafe for MerchantCategoryCode
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.