Struct pallas_addresses::ShelleyAddress
source · pub struct ShelleyAddress(/* private fields */);
Expand description
A decoded Shelley address
Implementations§
source§impl ShelleyAddress
impl ShelleyAddress
pub fn new( network: Network, payment: ShelleyPaymentPart, delegation: ShelleyDelegationPart ) -> Self
pub fn to_header(&self) -> u8
pub fn payment(&self) -> &ShelleyPaymentPart
pub fn delegation(&self) -> &ShelleyDelegationPart
sourcepub fn hrp(&self) -> Result<&'static str, Error>
pub fn hrp(&self) -> Result<&'static str, Error>
Gets the bech32 human-readable-part for this address
pub fn to_vec(&self) -> Vec<u8> ⓘ
pub fn to_hex(&self) -> String
pub fn to_bech32(&self) -> Result<String, Error>
sourcepub fn has_script(&self) -> bool
pub fn has_script(&self) -> bool
Indicates if either the payment or delegation part is a script
Trait Implementations§
source§impl Clone for ShelleyAddress
impl Clone for ShelleyAddress
source§fn clone(&self) -> ShelleyAddress
fn clone(&self) -> ShelleyAddress
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 ShelleyAddress
impl Debug for ShelleyAddress
source§impl From<ShelleyAddress> for Address
impl From<ShelleyAddress> for Address
source§fn from(addr: ShelleyAddress) -> Self
fn from(addr: ShelleyAddress) -> Self
Converts to this type from the input type.
source§impl Hash for ShelleyAddress
impl Hash for ShelleyAddress
source§impl PartialEq for ShelleyAddress
impl PartialEq for ShelleyAddress
source§fn eq(&self, other: &ShelleyAddress) -> bool
fn eq(&self, other: &ShelleyAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ShelleyAddress
impl PartialOrd for ShelleyAddress
source§fn partial_cmp(&self, other: &ShelleyAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &ShelleyAddress) -> 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 moresource§impl TryFrom<ShelleyAddress> for StakeAddress
impl TryFrom<ShelleyAddress> for StakeAddress
impl Eq for ShelleyAddress
impl StructuralPartialEq for ShelleyAddress
Auto Trait Implementations§
impl RefUnwindSafe for ShelleyAddress
impl Send for ShelleyAddress
impl Sync for ShelleyAddress
impl Unpin for ShelleyAddress
impl UnwindSafe for ShelleyAddress
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more