Struct bitcoin::blockdata::transaction::TxOut
[−]
[src]
pub struct TxOut { pub value: u64, pub script_pubkey: Script, }
A transaction output, which defines new coins to be created from old ones.
Fields
value: u64
The value of the output, in satoshis
script_pubkey: Script
The script which must satisfy for the output to be spent
Trait Implementations
impl Hash for TxOut
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Debug for TxOut
[src]
impl Eq for TxOut
[src]
impl PartialEq for TxOut
[src]
fn eq(&self, __arg_0: &TxOut) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TxOut) -> bool
This method tests for !=
.
impl Clone for TxOut
[src]
fn clone(&self) -> TxOut
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Deserialize for TxOut
fn deserialize<D>(deserializer: &mut D) -> Result<TxOut, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl Serialize for TxOut
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl Default for TxOut
[src]
impl<S: SimpleEncoder> ConsensusEncodable<S> for TxOut
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>
Encode an object with a well-defined format
impl<D: SimpleDecoder> ConsensusDecodable<D> for TxOut
[src]
fn consensus_decode(d: &mut D) -> Result<TxOut, D::Error>
Decode an object with a well-defined format