pub struct SpendingHit {
pub vin: Option<u32>,
pub outpoint: Outpoint,
pub scripthash: [u8; 32],
pub script_pubkey: ScriptBuf,
pub amount: Option<u64>,
}Available on crate feature
bitcoin only.Expand description
A spent prevout (spending side) of a delivered tx that consumed a watched
script. Only produced for prevouts the server retained the script for;
unretained ones surface in PrefixHits::unresolved.
Fields§
§vin: Option<u32>The input index that spends the prevout, if it was located in the decoded
tx (it always should be; None only on a malformed/mismatched payload).
outpoint: OutpointThe consumed outpoint.
scripthash: [u8; 32]The matched sha256(scriptPubKey).
script_pubkey: ScriptBufThe prevout’s scriptPubKey.
amount: Option<u64>The prevout value in satoshis. None when the server retained the script
but not the value (distinct from a genuine 0-sat prevout, Some(0)).
Trait Implementations§
Source§impl Clone for SpendingHit
impl Clone for SpendingHit
Source§impl Debug for SpendingHit
impl Debug for SpendingHit
impl Eq for SpendingHit
Source§impl PartialEq for SpendingHit
impl PartialEq for SpendingHit
impl StructuralPartialEq for SpendingHit
Auto Trait Implementations§
impl Freeze for SpendingHit
impl RefUnwindSafe for SpendingHit
impl Send for SpendingHit
impl Sync for SpendingHit
impl Unpin for SpendingHit
impl UnsafeUnpin for SpendingHit
impl UnwindSafe for SpendingHit
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.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