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 StrictDecode for TxOut
impl StrictDecode for TxOut
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictEncode for TxOut
impl StrictEncode for TxOut
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), 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 StructuralPartialEq for TxOut
Auto Trait Implementations§
impl Freeze for TxOut
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.