[−][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)
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(&self) -> 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<__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<S: Encoder> Encodable<S> for TxOut
[src]
impl<D: Decoder> Decodable<D> for TxOut
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,