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: MerchantCategoryCode
pub const RESTAURANTS: MerchantCategoryCode
pub const GAS_STATIONS: MerchantCategoryCode
pub const AIRLINES: MerchantCategoryCode
pub const HOTELS: MerchantCategoryCode
pub const CAR_RENTAL: MerchantCategoryCode
pub const DEPARTMENT_STORES: MerchantCategoryCode
pub const DRUG_STORES: MerchantCategoryCode
pub const UTILITIES: MerchantCategoryCode
pub const TELECOM: MerchantCategoryCode
pub const INSURANCE: MerchantCategoryCode
pub const MEDICAL: MerchantCategoryCode
pub const EDUCATION: MerchantCategoryCode
pub const GOVERNMENT: MerchantCategoryCode
pub const MONEY_TRANSFER: MerchantCategoryCode
pub const WIRE_TRANSFER: MerchantCategoryCode
pub const GAMBLING: MerchantCategoryCode
pub const CRYPTO: MerchantCategoryCode
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§fn default() -> MerchantCategoryCode
fn default() -> MerchantCategoryCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MerchantCategoryCode
impl<'de> Deserialize<'de> for MerchantCategoryCode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MerchantCategoryCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MerchantCategoryCode, <__D as Deserializer<'de>>::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
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
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.