pub struct CoinInfo {
pub coin_type: CoinType,
pub network: u64,
}Expand description
Metadata for the type and use of a cryptocurrency.
Fields§
§coin_type: CoinTypeCoin type.
network: u64Network identifier.
mainnet is the general for all currencies.
All others are coin-specific value.
Implementations§
Source§impl CoinInfo
impl CoinInfo
Sourcepub const NETWORK_MAINNET: u64 = 0u64
pub const NETWORK_MAINNET: u64 = 0u64
Universal value for unique network.
Sourcepub const NETWORK_BTC_TESTNET: u64 = 1u64
pub const NETWORK_BTC_TESTNET: u64 = 1u64
Bitcoin testnet network.
Sourcepub const BTC_MAINNET: Self
pub const BTC_MAINNET: Self
Bitcoin mainnet.
pub fn is_default(&self) -> bool
Trait Implementations§
impl Eq for CoinInfo
impl StructuralPartialEq for CoinInfo
Auto Trait Implementations§
impl Freeze for CoinInfo
impl RefUnwindSafe for CoinInfo
impl Send for CoinInfo
impl Sync for CoinInfo
impl Unpin for CoinInfo
impl UnwindSafe for CoinInfo
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