Struct cardano_serialization_lib::OutputDatum 
source · pub struct OutputDatum(/* private fields */);Implementations§
source§impl OutputDatum
 
impl OutputDatum
pub fn new_data_hash(data_hash: &DataHash) -> Self
pub fn new_data(data: &PlutusData) -> Self
pub fn data_hash(&self) -> Option<DataHash>
pub fn data(&self) -> Option<PlutusData>
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 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 StructuralEq for OutputDatum
impl StructuralPartialEq for OutputDatum
Auto Trait Implementations§
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