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
sourceimpl 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
sourceimpl Clone for AddressType
impl Clone for AddressType
sourcefn clone(&self) -> AddressType
fn clone(&self) -> AddressType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AddressType
impl Debug for AddressType
sourceimpl Default for AddressType
impl Default for AddressType
sourcefn default() -> AddressType
fn default() -> AddressType
Returns the “default value” for a type. Read more
sourceimpl Display for AddressType
impl Display for AddressType
sourceimpl Hash for AddressType
impl Hash for AddressType
sourceimpl PartialEq<AddressType> for AddressType
impl PartialEq<AddressType> for AddressType
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AddressType) -> bool
fn ne(&self, other: &AddressType) -> bool
This method tests for !=
.
impl Copy for AddressType
impl Eq for AddressType
impl StructuralEq for AddressType
impl StructuralPartialEq for AddressType
Auto Trait Implementations
impl RefUnwindSafe for AddressType
impl Send for AddressType
impl Sync for AddressType
impl Unpin for AddressType
impl UnwindSafe for AddressType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more