Enum plutus_ledger_api::v1::transaction::ScriptPurpose
source · pub enum ScriptPurpose {
Minting(CurrencySymbol),
Spending(TransactionInput),
Rewarding(StakingCredential),
Certifying(DCert),
}
Expand description
The purpose of the script that’s currently running.
Variants§
Trait Implementations§
source§impl Clone for ScriptPurpose
impl Clone for ScriptPurpose
source§fn clone(&self) -> ScriptPurpose
fn clone(&self) -> ScriptPurpose
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 ScriptPurpose
impl Debug for ScriptPurpose
source§impl Hash for ScriptPurpose
impl Hash for ScriptPurpose
source§impl IsPlutusData for ScriptPurpose
impl IsPlutusData for ScriptPurpose
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(plutus_data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for ScriptPurpose
impl Ord for ScriptPurpose
source§fn cmp(&self, other: &ScriptPurpose) -> Ordering
fn cmp(&self, other: &ScriptPurpose) -> 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 ScriptPurpose
impl PartialEq for ScriptPurpose
source§fn eq(&self, other: &ScriptPurpose) -> bool
fn eq(&self, other: &ScriptPurpose) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ScriptPurpose
impl PartialOrd for ScriptPurpose
source§fn partial_cmp(&self, other: &ScriptPurpose) -> Option<Ordering>
fn partial_cmp(&self, other: &ScriptPurpose) -> 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 ScriptPurpose
impl StructuralPartialEq for ScriptPurpose
Auto Trait Implementations§
impl Freeze for ScriptPurpose
impl RefUnwindSafe for ScriptPurpose
impl Send for ScriptPurpose
impl Sync for ScriptPurpose
impl Unpin for ScriptPurpose
impl UnwindSafe for ScriptPurpose
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