Enum monero::util::address::AddressType
source · pub enum AddressType {
Standard,
Integrated(PaymentId),
SubAddress,
}
Expand description
Address type: standard, integrated, or sub-address.
AddressType implements Default
and returns AddressType::Standard
.
Variants§
Standard
Standard address.
Integrated(PaymentId)
Address with a short 8 bytes payment id.
SubAddress
Sub-address.
Implementations§
source§impl AddressType
impl AddressType
sourcepub fn from_slice(bytes: &[u8], net: Network) -> Result<AddressType, Error>
pub fn from_slice(bytes: &[u8], net: Network) -> Result<AddressType, Error>
Recover the address type given an address bytes and the network.
Trait Implementations§
source§impl Clone for AddressType
impl Clone for AddressType
source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
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 AddressType
impl Debug for AddressType
source§impl Default for AddressType
impl Default for AddressType
source§fn default() -> AddressType
fn default() -> AddressType
Returns the “default value” for a type. Read more
source§impl Display for AddressType
impl Display for AddressType
source§impl Hash for AddressType
impl Hash for AddressType
source§impl PartialEq<AddressType> for AddressType
impl PartialEq<AddressType> for AddressType
source§fn eq(&self, other: &AddressType) -> bool
fn eq(&self, other: &AddressType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.