Enum monero::util::address::AddressType [−][src]
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 address.
Integrated(PaymentId)
Address with a short 8 bytes payment id.
Sub-address.
Implementations
impl AddressType
[src]
impl AddressType
[src]pub fn from_slice(bytes: &[u8], net: Network) -> Result<AddressType, Error>
[src]
pub fn from_slice(bytes: &[u8], net: Network) -> Result<AddressType, Error>
[src]Recover the address type given an address bytes and the network.
Trait Implementations
impl Clone for AddressType
[src]
impl Clone for AddressType
[src]fn clone(&self) -> AddressType
[src]
fn clone(&self) -> AddressType
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AddressType
[src]
impl Debug for AddressType
[src]impl Default for AddressType
[src]
impl Default for AddressType
[src]fn default() -> AddressType
[src]
fn default() -> AddressType
[src]Returns the “default value” for a type. Read more
impl Display for AddressType
[src]
impl Display for AddressType
[src]impl Hash for AddressType
[src]
impl Hash for AddressType
[src]impl PartialEq<AddressType> for AddressType
[src]
impl PartialEq<AddressType> for AddressType
[src]fn eq(&self, other: &AddressType) -> bool
[src]
fn eq(&self, other: &AddressType) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &AddressType) -> bool
[src]
fn ne(&self, other: &AddressType) -> bool
[src]This method tests for !=
.
impl Copy for AddressType
[src]
impl Eq for AddressType
[src]
impl StructuralEq for AddressType
[src]
impl StructuralPartialEq for AddressType
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more