Struct chain_impl_mockchain::transaction::UtxoPointer
source · pub struct UtxoPointer {
pub transaction_id: FragmentId,
pub output_index: TransactionIndex,
pub value: Value,
}
Expand description
Unspent transaction pointer.
Fields§
§transaction_id: FragmentId
the transaction identifier where the unspent output is
output_index: TransactionIndex
the output index within the pointed transaction’s outputs
value: Value
the value we expect to read from this output
This setting is added in order to protect undesired withdrawal and to set the actual fee in the transaction.
Implementations§
source§impl UtxoPointer
impl UtxoPointer
pub fn new( transaction_id: FragmentId, output_index: TransactionIndex, value: Value ) -> Self
Trait Implementations§
source§impl Arbitrary for UtxoPointer
impl Arbitrary for UtxoPointer
source§impl Clone for UtxoPointer
impl Clone for UtxoPointer
source§fn clone(&self) -> UtxoPointer
fn clone(&self) -> UtxoPointer
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 UtxoPointer
impl Debug for UtxoPointer
source§impl Display for UtxoPointer
impl Display for UtxoPointer
source§impl Hash for UtxoPointer
impl Hash for UtxoPointer
source§impl Ord for UtxoPointer
impl Ord for UtxoPointer
source§fn cmp(&self, other: &UtxoPointer) -> Ordering
fn cmp(&self, other: &UtxoPointer) -> 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<UtxoPointer> for UtxoPointer
impl PartialEq<UtxoPointer> for UtxoPointer
source§fn eq(&self, other: &UtxoPointer) -> bool
fn eq(&self, other: &UtxoPointer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UtxoPointer> for UtxoPointer
impl PartialOrd<UtxoPointer> for UtxoPointer
source§fn partial_cmp(&self, other: &UtxoPointer) -> Option<Ordering>
fn partial_cmp(&self, other: &UtxoPointer) -> 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 Copy for UtxoPointer
impl Eq for UtxoPointer
impl StructuralEq for UtxoPointer
impl StructuralPartialEq for UtxoPointer
Auto Trait Implementations§
impl RefUnwindSafe for UtxoPointer
impl Send for UtxoPointer
impl Sync for UtxoPointer
impl Unpin for UtxoPointer
impl UnwindSafe for UtxoPointer
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