pub enum OracleDecimals {
Six,
Eight,
Eighteen,
Custom(u8),
}Expand description
Standard oracle decimal formats.
Variants§
Six
USDC, USDT on many chains (6 decimals)
Eight
Chainlink default (8 decimals)
Eighteen
ETH, most ERC-20 tokens (18 decimals)
Custom(u8)
Custom decimal count
Implementations§
Trait Implementations§
Source§impl Clone for OracleDecimals
impl Clone for OracleDecimals
Source§fn clone(&self) -> OracleDecimals
fn clone(&self) -> OracleDecimals
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 OracleDecimals
impl Debug for OracleDecimals
Source§impl From<u8> for OracleDecimals
impl From<u8> for OracleDecimals
Source§impl PartialEq for OracleDecimals
impl PartialEq for OracleDecimals
impl Copy for OracleDecimals
impl Eq for OracleDecimals
impl StructuralPartialEq for OracleDecimals
Auto Trait Implementations§
impl Freeze for OracleDecimals
impl RefUnwindSafe for OracleDecimals
impl Send for OracleDecimals
impl Sync for OracleDecimals
impl Unpin for OracleDecimals
impl UnwindSafe for OracleDecimals
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