pub struct UTXO {
pub value: i64,
pub script_pubkey: SharedByteString,
pub height: u64,
pub is_coinbase: bool,
}Expand description
UTXO: ๐ฐ = โค ร ๐ ร โ
Fieldsยง
ยงvalue: i64ยงscript_pubkey: SharedByteStringยงheight: u64ยงis_coinbase: boolWhether this UTXO is from a coinbase transaction Coinbase outputs require maturity (COINBASE_MATURITY blocks) before they can be spent
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for UTXO
impl<'de> Deserialize<'de> for UTXO
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<UTXO, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UTXO, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Serialize for UTXO
impl Serialize for UTXO
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for UTXO
impl StructuralPartialEq for UTXO
Auto Trait Implementationsยง
impl Freeze for UTXO
impl RefUnwindSafe for UTXO
impl Send for UTXO
impl Sync for UTXO
impl Unpin for UTXO
impl UnsafeUnpin for UTXO
impl UnwindSafe for UTXO
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<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more