[][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, not necessarily minimal)

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

Whether this output is a pegout, which is a subset of nulldata with the following extra rules: (a) there must be at least 2 pushes, the first of which must be 32 bytes and the second of which must be nonempty; (b) all pushes must use a push opcode rather than a numeric or reserved opcode

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

If this output is a pegout, 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 Eq 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 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<D: Decoder> Decodable<D> for TxOut[src]

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

Auto Trait Implementations

impl Send for TxOut

impl Unpin for TxOut

impl Sync for TxOut

impl UnwindSafe for TxOut

impl RefUnwindSafe for TxOut

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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