[][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


asset: Asset

Committed asset

value: Value

Committed amount

nonce: Nonce

Nonce (ECDH key passed to recipient)

script_pubkey: Script


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.


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 Clone for TxOut[src]

impl Debug for TxOut[src]

impl Decodable for TxOut[src]

impl Default for TxOut[src]

impl Encodable for TxOut[src]

impl Eq for TxOut[src]

impl Hash for TxOut[src]

impl PartialEq<TxOut> for TxOut[src]

impl StructuralEq for TxOut[src]

impl StructuralPartialEq for TxOut[src]

Auto Trait Implementations

impl RefUnwindSafe for TxOut

impl Send for TxOut

impl Sync for TxOut

impl Unpin for TxOut

impl UnwindSafe for TxOut

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.