pub struct EnterpriseAddress { /* private fields */ }
Implementations§
source§impl EnterpriseAddress
impl EnterpriseAddress
pub fn new(network: u8, payment: &StakeCredential) -> Self
pub fn payment_cred(&self) -> StakeCredential
pub fn to_address(&self) -> Address
pub fn from_address(addr: &Address) -> Option<EnterpriseAddress>
Trait Implementations§
source§impl Clone for EnterpriseAddress
impl Clone for EnterpriseAddress
source§fn clone(&self) -> EnterpriseAddress
fn clone(&self) -> EnterpriseAddress
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 EnterpriseAddress
impl Debug for EnterpriseAddress
source§impl Ord for EnterpriseAddress
impl Ord for EnterpriseAddress
source§fn cmp(&self, other: &EnterpriseAddress) -> Ordering
fn cmp(&self, other: &EnterpriseAddress) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EnterpriseAddress> for EnterpriseAddress
impl PartialEq<EnterpriseAddress> for EnterpriseAddress
source§fn eq(&self, other: &EnterpriseAddress) -> bool
fn eq(&self, other: &EnterpriseAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EnterpriseAddress> for EnterpriseAddress
impl PartialOrd<EnterpriseAddress> for EnterpriseAddress
source§fn partial_cmp(&self, other: &EnterpriseAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &EnterpriseAddress) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more