Struct chainhook_types::bitcoin::TxOut
source · pub struct TxOut {
pub value: u64,
pub script_pubkey: String,
}Expand description
A transaction output, which defines new coins to be created from old ones.
Fields§
§value: u64The value of the output, in satoshis.
script_pubkey: StringThe script which must be satisfied for the output to be spent.
Implementations§
source§impl TxOut
impl TxOut
pub fn get_script_pubkey_bytes(&self) -> Vec<u8>
pub fn get_script_pubkey_hex(&self) -> &str
Trait Implementations§
source§impl<'de> Deserialize<'de> for TxOut
impl<'de> Deserialize<'de> for TxOut
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for TxOut
impl Ord for TxOut
source§impl PartialEq for TxOut
impl PartialEq for TxOut
source§impl PartialOrd for TxOut
impl PartialOrd for TxOut
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for TxOut
impl StructuralEq for TxOut
impl StructuralPartialEq for TxOut
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more