pub struct CoinRef {
pub outpoint: OutPoint,
pub value: u64,
pub height: u32,
pub coinbase: bool,
}Expand description
A coin as StateOf::coins lists it.
Fields§
§outpoint: OutPointThe outpoint.
value: u64Sats.
height: u32The creating block’s height.
coinbase: boolWhether it is a coinbase output (maturity applies).
Trait Implementations§
impl Eq for CoinRef
impl StructuralPartialEq for CoinRef
Auto Trait Implementations§
impl Freeze for CoinRef
impl RefUnwindSafe for CoinRef
impl Send for CoinRef
impl Sync for CoinRef
impl Unpin for CoinRef
impl UnsafeUnpin for CoinRef
impl UnwindSafe for CoinRef
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.