Enum plutus_ledger_api::v2::datum::OutputDatum
source · pub enum OutputDatum {
None,
DatumHash(DatumHash),
InlineDatum(Datum),
}
Expand description
Optional datum of a transaction
In case an inline datum is used, the data is embedded inside the transaction body, so it can be directly retrieved. In case of a datum hash, an off-chain indexer is required to find the associated datum by its hash.
Variants§
Trait Implementations§
source§impl Clone for OutputDatum
impl Clone for OutputDatum
source§fn clone(&self) -> OutputDatum
fn clone(&self) -> OutputDatum
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 OutputDatum
impl Debug for OutputDatum
source§impl Hash for OutputDatum
impl Hash for OutputDatum
source§impl IsPlutusData for OutputDatum
impl IsPlutusData for OutputDatum
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for OutputDatum
impl Ord for OutputDatum
source§fn cmp(&self, other: &OutputDatum) -> Ordering
fn cmp(&self, other: &OutputDatum) -> 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 OutputDatum
impl PartialEq for OutputDatum
source§fn eq(&self, other: &OutputDatum) -> bool
fn eq(&self, other: &OutputDatum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OutputDatum
impl PartialOrd for OutputDatum
source§fn partial_cmp(&self, other: &OutputDatum) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputDatum) -> 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 OutputDatum
impl StructuralPartialEq for OutputDatum
Auto Trait Implementations§
impl Freeze for OutputDatum
impl RefUnwindSafe for OutputDatum
impl Send for OutputDatum
impl Sync for OutputDatum
impl Unpin for OutputDatum
impl UnwindSafe for OutputDatum
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