[−][src]Struct elements::TxOut
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(&self) -> 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<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,