pub struct Merchant {
pub merchant_id: Uuid,
pub name: String,
pub mcc: MerchantCategoryCode,
pub country: String,
pub city: Option<String>,
pub is_online: bool,
pub typical_amount_range: (Decimal, Decimal),
pub is_high_risk: bool,
}Expand description
A merchant counterparty.
Fields§
§merchant_id: UuidUnique merchant identifier
name: StringMerchant name
mcc: MerchantCategoryCodeMerchant category code
country: StringCountry (ISO 3166-1 alpha-2)
city: Option<String>City
is_online: boolIs online-only merchant
typical_amount_range: (Decimal, Decimal)Typical transaction amount range
is_high_risk: boolWhether merchant is high-risk
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Merchant
impl<'de> Deserialize<'de> for Merchant
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
Auto Trait Implementations§
impl Freeze for Merchant
impl RefUnwindSafe for Merchant
impl Send for Merchant
impl Sync for Merchant
impl Unpin for Merchant
impl UnwindSafe for Merchant
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