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 Clone for TxOut
[src]
fn clone(&self) -> TxOut
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for TxOut
[src]
fn eq(&self, __arg_0: &TxOut) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TxOut) -> bool
[src]
This method tests for !=
.
impl Eq for TxOut
[src]
impl Debug for TxOut
[src]
impl Hash for TxOut
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
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 Deserialize for TxOut
fn deserialize<D>(deserializer: &mut D) -> Result<TxOut, D::Error> where
D: Deserializer,
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,
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>
[src]
Encode an object with a well-defined format