Enum crypto_addr::WIFOptions
source · #[non_exhaustive]
pub enum WIFOptions {
Bitcoin,
Litecoin,
Dash,
Dogecoin,
Europecoin,
Peercoin,
}Expand description
Options for formatting a private key as WIF.
Currently, this just specifies the blockchain network for which the WIF is intended to be used because for each blockchain network there is exactly one supported way to serialize the private key as a string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for WIFOptions
impl Clone for WIFOptions
source§fn clone(&self) -> WIFOptions
fn clone(&self) -> WIFOptions
Returns a copy 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 WIFOptions
impl Debug for WIFOptions
source§impl Display for WIFOptions
impl Display for WIFOptions
source§impl From<&AddressOptions> for WIFOptions
impl From<&AddressOptions> for WIFOptions
source§fn from(opts: &AddressOptions) -> Self
fn from(opts: &AddressOptions) -> Self
Obtain a WIFOptions using the same blockchain network as an AddressOptions
source§impl FromStr for WIFOptions
impl FromStr for WIFOptions
source§impl PartialEq<WIFOptions> for WIFOptions
impl PartialEq<WIFOptions> for WIFOptions
source§fn eq(&self, other: &WIFOptions) -> bool
fn eq(&self, other: &WIFOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.