pub struct StakeAddress(/* private fields */);Expand description
A decoded Stake address
Implementations§
Source§impl StakeAddress
impl StakeAddress
Sourcepub fn payload(&self) -> &StakePayload
pub fn payload(&self) -> &StakePayload
Gets the payload of this address
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>
pub fn is_script(&self) -> bool
Trait Implementations§
Source§impl Clone for StakeAddress
impl Clone for StakeAddress
Source§fn clone(&self) -> StakeAddress
fn clone(&self) -> StakeAddress
Returns a duplicate 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 StakeAddress
impl Debug for StakeAddress
Source§impl From<StakeAddress> for Address
impl From<StakeAddress> for Address
Source§fn from(addr: StakeAddress) -> Address
fn from(addr: StakeAddress) -> Address
Converts to this type from the input type.
Source§impl Hash for StakeAddress
impl Hash for StakeAddress
Source§impl PartialEq for StakeAddress
impl PartialEq for StakeAddress
Source§impl PartialOrd for StakeAddress
impl PartialOrd for StakeAddress
Source§impl TryFrom<ShelleyAddress> for StakeAddress
impl TryFrom<ShelleyAddress> for StakeAddress
Source§fn try_from(
value: ShelleyAddress,
) -> Result<StakeAddress, <StakeAddress as TryFrom<ShelleyAddress>>::Error>
fn try_from( value: ShelleyAddress, ) -> Result<StakeAddress, <StakeAddress as TryFrom<ShelleyAddress>>::Error>
Performs the conversion.
impl Eq for StakeAddress
impl StructuralPartialEq for StakeAddress
Auto Trait Implementations§
impl Freeze for StakeAddress
impl RefUnwindSafe for StakeAddress
impl Send for StakeAddress
impl Sync for StakeAddress
impl Unpin for StakeAddress
impl UnsafeUnpin for StakeAddress
impl UnwindSafe for StakeAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more