# Money_conversion Money conversion from lower subunit to higher unit and vice-versa
```rust use amount_conversion::factor::{Currency::{self,*}, FromCurrency}; #[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, serde::Deserialize, serde::Serialize)] enum UserCurrency { Inr, Usd, } impl FromCurrency for UserCurrency { fn currency(&self) -> Currency { match self { UserCurrency::Inr => INR, UserCurrency::Usd => USD, } } type Money = MoneyInner