Enum pallas_addresses::StakePayload
source · pub enum StakePayload {
Stake(StakeKeyHash),
Script(ScriptHash),
}
Expand description
The payload of a Stake address
Variants§
Stake(StakeKeyHash)
Script(ScriptHash)
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for StakePayload
impl AsRef<[u8]> for StakePayload
source§impl Clone for StakePayload
impl Clone for StakePayload
source§fn clone(&self) -> StakePayload
fn clone(&self) -> StakePayload
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 StakePayload
impl Debug for StakePayload
source§impl Hash for StakePayload
impl Hash for StakePayload
source§impl PartialEq for StakePayload
impl PartialEq for StakePayload
source§fn eq(&self, other: &StakePayload) -> bool
fn eq(&self, other: &StakePayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StakePayload
impl PartialOrd for StakePayload
source§fn partial_cmp(&self, other: &StakePayload) -> Option<Ordering>
fn partial_cmp(&self, other: &StakePayload) -> 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 moreimpl Eq for StakePayload
impl StructuralPartialEq for StakePayload
Auto Trait Implementations§
impl RefUnwindSafe for StakePayload
impl Send for StakePayload
impl Sync for StakePayload
impl Unpin for StakePayload
impl UnwindSafe for StakePayload
Blanket Implementations§
source§impl<T> Base32Len for T
impl<T> Base32Len for T
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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> CheckBase32<Vec<u5>> for T
impl<T> CheckBase32<Vec<u5>> for T
source§impl<T> ToBase32 for T
impl<T> ToBase32 for T
source§fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate.
source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)