pub struct UtxoInfo {
pub outpoint: OutPoint,
pub amount: Amount,
pub confirmation_height: Option<u32>,
}Expand description
Struct representing information about an Unspent Transaction Output (UTXO).
This structure provides details about a UTXO, which includes the outpoint (transaction ID and index), the associated amount in satoshis, and the block height at which the transaction was confirmed (if available).
§Serde Behavior
- The
amountfield is serialized and deserialized with a custom function from thebitcoincrate that ensures the value is interpreted as satoshis with the nameamount_sat.
Fields§
§outpoint: OutPointContains the reference to the specific transaction output via transaction ID and index.
amount: AmountThe value of the UTXO in satoshis.
confirmation_height: Option<u32>An optional field that specifies the block height at which the transaction was confirmed. If
the transaction is unconfirmed, this value will be None.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UtxoInfo
impl<'de> Deserialize<'de> for UtxoInfo
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
impl Eq for UtxoInfo
impl StructuralPartialEq for UtxoInfo
Auto Trait Implementations§
impl Freeze for UtxoInfo
impl RefUnwindSafe for UtxoInfo
impl Send for UtxoInfo
impl Sync for UtxoInfo
impl Unpin for UtxoInfo
impl UnsafeUnpin for UtxoInfo
impl UnwindSafe for UtxoInfo
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request