[][src]Struct elements::TxOut

pub struct TxOut {
    pub asset: Asset,
    pub value: Value,
    pub nonce: Nonce,
    pub script_pubkey: Script,
    pub witness: TxOutWitness,
}

Transaction output

Fields

asset: Asset

Committed asset

value: Value

Committed amount

nonce: Nonce

Nonce (ECDH key passed to recipient)

script_pubkey: Script

Scriptpubkey

witness: TxOutWitness

Witness data - not deserialized/serialized as part of a TxIn object (rather as part of its containing transaction, if any) but is logically part of the txin.

Methods

impl TxOut[src]

pub fn is_null_data(&self) -> bool[src]

Whether this data represents nulldata (OP_RETURN followed by pushes)

pub fn is_pegout(&self) -> bool[src]

Whether this output is a pegout

pub fn pegout_data(&self) -> Option<PegoutData>[src]

Whether this output is a pegout; if so, returns the destination genesis block, the destination script pubkey, and any additional data

pub fn is_fee(&self) -> bool[src]

Whether or not this output is a fee output

pub fn minimum_value(&self) -> u64[src]

Extracts the minimum value from the rangeproof, if there is one, or returns 0.

Trait Implementations

impl PartialEq<TxOut> for TxOut[src]

impl Default for TxOut[src]

impl Clone for TxOut[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for TxOut[src]

impl Hash for TxOut[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for TxOut[src]

impl<S: Encoder> Encodable<S> for TxOut[src]

impl<D: Decoder> Decodable<D> for TxOut[src]

Auto Trait Implementations

impl Send for TxOut

impl Sync for TxOut

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.