pub struct TxOut {
pub value: Sats,
pub script_pubkey: ScriptPubkey,
}
Fields§
§value: Sats
§script_pubkey: ScriptPubkey
Implementations§
Trait Implementations§
source§impl ConsensusDecode for TxOut
impl ConsensusDecode for TxOut
fn consensus_decode( reader: &mut impl Read ) -> Result<Self, ConsensusDecodeError>
fn consensus_deserialize( bytes: impl AsRef<[u8]> ) -> Result<Self, ConsensusDecodeError>
source§impl ConsensusEncode for TxOut
impl ConsensusEncode for TxOut
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 PartialEq for TxOut
impl PartialEq for TxOut
source§impl StrictDecode for TxOut
impl StrictDecode for TxOut
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for TxOut
impl StrictDumb for TxOut
fn strict_dumb() -> Self
source§impl StrictEncode for TxOut
impl StrictEncode for TxOut
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictStruct for TxOut
impl StrictStruct for TxOut
const ALL_FIELDS: &'static [&'static str] = _
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for TxOut
impl StrictType for TxOut
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
source§impl Weight for TxOut
impl Weight for TxOut
fn weight_units(&self) -> WeightUnits
fn vbytes(&self) -> VBytes
impl Eq for TxOut
impl StrictProduct 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.