Enum plutus_ledger_api::v1::address::StakingCredential
source · pub enum StakingCredential {
Hash(Credential),
Pointer(ChainPointer),
}
Expand description
Credential (public key hash or pointer) used for staking
Variants§
Hash(Credential)
Pointer(ChainPointer)
Trait Implementations§
source§impl Clone for StakingCredential
impl Clone for StakingCredential
source§fn clone(&self) -> StakingCredential
fn clone(&self) -> StakingCredential
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 StakingCredential
impl Debug for StakingCredential
source§impl Hash for StakingCredential
impl Hash for StakingCredential
source§impl IsPlutusData for StakingCredential
impl IsPlutusData for StakingCredential
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for StakingCredential
impl Ord for StakingCredential
source§fn cmp(&self, other: &StakingCredential) -> Ordering
fn cmp(&self, other: &StakingCredential) -> 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 for StakingCredential
impl PartialEq for StakingCredential
source§fn eq(&self, other: &StakingCredential) -> bool
fn eq(&self, other: &StakingCredential) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StakingCredential
impl PartialOrd for StakingCredential
source§fn partial_cmp(&self, other: &StakingCredential) -> Option<Ordering>
fn partial_cmp(&self, other: &StakingCredential) -> 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 StakingCredential
impl StructuralPartialEq for StakingCredential
Auto Trait Implementations§
impl Freeze for StakingCredential
impl RefUnwindSafe for StakingCredential
impl Send for StakingCredential
impl Sync for StakingCredential
impl Unpin for StakingCredential
impl UnwindSafe for StakingCredential
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