pub struct ZeldOutput {
pub utxo_key: UtxoKey,
pub value: Amount,
pub reward: Amount,
pub distribution: Amount,
pub vout: u32,
pub address: Option<String>,
}Expand description
Represents a transaction output with ZELD-relevant data.
Fields§
§utxo_key: UtxoKeyUnique key identifying this UTXO.
value: AmountSatoshi value of this output.
reward: AmountZELD reward assigned to this output.
distribution: AmountCustom distribution amount from OP_RETURN (if any).
vout: u32Output index within the transaction.
address: Option<String>Bitcoin address for the reward-carrying output only (first non-OP_RETURN),
if determinable. None for non-standard scripts (e.g., bare multisig),
or for non-reward outputs where no address is stored.
Trait Implementations§
Source§impl Clone for ZeldOutput
impl Clone for ZeldOutput
Source§fn clone(&self) -> ZeldOutput
fn clone(&self) -> ZeldOutput
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ZeldOutput
impl RefUnwindSafe for ZeldOutput
impl Send for ZeldOutput
impl Sync for ZeldOutput
impl Unpin for ZeldOutput
impl UnwindSafe for ZeldOutput
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