pub struct ADA;Expand description
Cardano (ADA)
Cardano is a blockchain platform for changemakers, innovators, and visionaries, with the tools and technologies required to create possibility for the many, as well as the few, and bring about positive global change.
§Examples
use typed_money::{Amount, Currency, ADA};
let amount = Amount::<ADA>::from_major(1000);
assert_eq!(amount.to_major_floor(), 1000);
assert_eq!(ADA::CODE, "ADA");
assert_eq!(ADA::SYMBOL, "₳");Trait Implementations§
Source§impl Currency for ADA
impl Currency for ADA
Source§const DECIMALS: u8 = 6u8
const DECIMALS: u8 = 6u8
Number of decimal places for this currency (e.g., 2 for USD, 0 for JPY)
Source§const NAME: &'static str = "Cardano"
const NAME: &'static str = "Cardano"
Full currency name (e.g., “US Dollar”, “Euro”, “Bitcoin”)
Source§const REGION: &'static str = "Worldwide"
const REGION: &'static str = "Worldwide"
Geographic region where this currency is primarily used
Source§const CURRENCY_TYPE: CurrencyType = CurrencyType::Cryptocurrency
const CURRENCY_TYPE: CurrencyType = CurrencyType::Cryptocurrency
Type of currency (Fiat, Cryptocurrency, or Commodity)
Source§const INTRODUCED_YEAR: u16 = 2_017u16
const INTRODUCED_YEAR: u16 = 2_017u16
Year when this currency was introduced
Source§const ISO_4217_NUMBER: u16 = 0u16
const ISO_4217_NUMBER: u16 = 0u16
Official ISO 4217 numeric code
Source§const THOUSANDS_SEPARATOR: char = ','
const THOUSANDS_SEPARATOR: char = ','
Character used to separate thousands (e.g., ‘,’ for US, ‘.’ for EU)
Source§const DECIMAL_SEPARATOR: char = '.'
const DECIMAL_SEPARATOR: char = '.'
Character used as decimal separator (e.g., ‘.’ for US, ‘,’ for EU)
Source§const SYMBOL_POSITION: SymbolPosition = SymbolPosition::Before
const SYMBOL_POSITION: SymbolPosition = SymbolPosition::Before
Position of currency symbol relative to the amount
Source§const SPACE_BETWEEN: bool = false
const SPACE_BETWEEN: bool = false
Whether to include a space between symbol and amount
Source§const VOLATILITY_RATING: VolatilityRating = VolatilityRating::High
const VOLATILITY_RATING: VolatilityRating = VolatilityRating::High
Static volatility rating (Low, Medium, High)
Source§const LIQUIDITY_RATING: LiquidityRating = LiquidityRating::High
const LIQUIDITY_RATING: LiquidityRating = LiquidityRating::High
Static liquidity rating (Low, Medium, High)
Source§impl Ord for ADA
impl Ord for ADA
Source§impl PartialOrd for ADA
impl PartialOrd for ADA
impl Copy for ADA
impl Eq for ADA
impl StructuralPartialEq for ADA
Auto Trait Implementations§
impl Freeze for ADA
impl RefUnwindSafe for ADA
impl Send for ADA
impl Sync for ADA
impl Unpin for ADA
impl UnwindSafe for ADA
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