Struct monero::util::address::Address [−][src]
pub struct Address { pub network: Network, pub addr_type: AddressType, pub public_spend: PublicKey, pub public_view: PublicKey, }
Expand description
A complete Monero typed address valid for a specific network.
Fields
network: Network
The network on which the address is valid and should be used.
addr_type: AddressType
The address type.
public_spend: PublicKey
The address spend public key.
public_view: PublicKey
The address view public key.
Implementations
impl Address
[src]
impl Address
[src]pub fn standard(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
[src]
pub fn standard(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
[src]Create a standard address which is valid on the given network.
pub fn subaddress(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
[src]
pub fn subaddress(
network: Network,
public_spend: PublicKey,
public_view: PublicKey
) -> Address
[src]Create a sub-address which is valid on the given network.
pub fn integrated(
network: Network,
public_spend: PublicKey,
public_view: PublicKey,
payment_id: PaymentId
) -> Address
[src]
pub fn integrated(
network: Network,
public_spend: PublicKey,
public_view: PublicKey,
payment_id: PaymentId
) -> Address
[src]Create an address with an integrated payment id which is valid on the given network.
pub fn from_viewpair(network: Network, keys: &ViewPair) -> Address
[src]
pub fn from_viewpair(network: Network, keys: &ViewPair) -> Address
[src]Create a standard address from a view pair which is valid on the given network.
pub fn from_keypair(network: Network, keys: &KeyPair) -> Address
[src]
pub fn from_keypair(network: Network, keys: &KeyPair) -> Address
[src]Create a standard address from a key pair which is valid on the given network.
Trait Implementations
impl<'de> Deserialize<'de> for Address
[src]
impl<'de> Deserialize<'de> for Address
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Copy for Address
[src]
impl Eq for Address
[src]
impl StructuralEq for Address
[src]
impl StructuralPartialEq for Address
[src]
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,