Struct kaspa_wasm::UtxoEntryReference
source · pub struct UtxoEntryReference {
pub utxo: Arc<UtxoEntry>,
}
Fields§
§utxo: Arc<UtxoEntry>
Implementations§
source§impl UtxoEntryReference
impl UtxoEntryReference
pub fn id(&self) -> TransactionOutpointInner
pub fn id_as_ref(&self) -> &TransactionOutpointInner
pub fn amount_as_ref(&self) -> &u64
pub fn transaction_id(&self) -> Hash
pub fn transaction_id_as_ref(&self) -> &Hash
source§impl UtxoEntryReference
impl UtxoEntryReference
pub fn simulated(amount: u64) -> UtxoEntryReference
pub fn simulated_with_address( amount: u64, address: &Address ) -> UtxoEntryReference
Trait Implementations§
source§impl AsRef<UtxoEntry> for UtxoEntryReference
impl AsRef<UtxoEntry> for UtxoEntryReference
source§impl Clone for UtxoEntryReference
impl Clone for UtxoEntryReference
source§fn clone(&self) -> UtxoEntryReference
fn clone(&self) -> UtxoEntryReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UtxoEntryReference
impl Debug for UtxoEntryReference
source§impl<'de> Deserialize<'de> for UtxoEntryReference
impl<'de> Deserialize<'de> for UtxoEntryReference
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<UtxoEntryReference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<UtxoEntryReference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<PendingUtxoEntryReference> for UtxoEntryReference
impl From<PendingUtxoEntryReference> for UtxoEntryReference
source§fn from(pending: PendingUtxoEntryReference) -> UtxoEntryReference
fn from(pending: PendingUtxoEntryReference) -> UtxoEntryReference
Converts to this type from the input type.
source§impl From<RpcUtxosByAddressesEntry> for UtxoEntryReference
impl From<RpcUtxosByAddressesEntry> for UtxoEntryReference
source§fn from(entry: RpcUtxosByAddressesEntry) -> UtxoEntryReference
fn from(entry: RpcUtxosByAddressesEntry) -> UtxoEntryReference
Converts to this type from the input type.
source§impl From<UtxoEntry> for UtxoEntryReference
impl From<UtxoEntry> for UtxoEntryReference
source§fn from(entry: UtxoEntry) -> UtxoEntryReference
fn from(entry: UtxoEntry) -> UtxoEntryReference
Converts to this type from the input type.
source§impl From<UtxoEntryReference> for JsValue
impl From<UtxoEntryReference> for JsValue
source§fn from(value: UtxoEntryReference) -> JsValue
fn from(value: UtxoEntryReference) -> JsValue
Converts to this type from the input type.
source§impl From<UtxoEntryReference> for UtxoEntry
impl From<UtxoEntryReference> for UtxoEntry
source§fn from(value: UtxoEntryReference) -> UtxoEntry
fn from(value: UtxoEntryReference) -> UtxoEntry
Converts to this type from the input type.
source§impl FromWasmAbi for UtxoEntryReference
impl FromWasmAbi for UtxoEntryReference
source§impl Hash for UtxoEntryReference
impl Hash for UtxoEntryReference
source§impl IntoWasmAbi for UtxoEntryReference
impl IntoWasmAbi for UtxoEntryReference
source§impl LongRefFromWasmAbi for UtxoEntryReference
impl LongRefFromWasmAbi for UtxoEntryReference
§type Anchor = Ref<'static, UtxoEntryReference>
type Anchor = Ref<'static, UtxoEntryReference>
Same as
RefFromWasmAbi::Anchor
source§unsafe fn long_ref_from_abi(
js: <UtxoEntryReference as LongRefFromWasmAbi>::Abi
) -> <UtxoEntryReference as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <UtxoEntryReference as LongRefFromWasmAbi>::Abi ) -> <UtxoEntryReference as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
source§impl OptionFromWasmAbi for UtxoEntryReference
impl OptionFromWasmAbi for UtxoEntryReference
source§fn is_none(abi: &<UtxoEntryReference as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<UtxoEntryReference as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None
, and otherwise it will be passed to
FromWasmAbi
.source§impl OptionIntoWasmAbi for UtxoEntryReference
impl OptionIntoWasmAbi for UtxoEntryReference
source§fn none() -> <UtxoEntryReference as IntoWasmAbi>::Abi
fn none() -> <UtxoEntryReference as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None
branch of this option. Read moresource§impl Ord for UtxoEntryReference
impl Ord for UtxoEntryReference
source§fn cmp(&self, other: &UtxoEntryReference) -> Ordering
fn cmp(&self, other: &UtxoEntryReference) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for UtxoEntryReference
impl PartialEq for UtxoEntryReference
source§fn eq(&self, other: &UtxoEntryReference) -> bool
fn eq(&self, other: &UtxoEntryReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UtxoEntryReference
impl PartialOrd for UtxoEntryReference
source§fn partial_cmp(&self, other: &UtxoEntryReference) -> Option<Ordering>
fn partial_cmp(&self, other: &UtxoEntryReference) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RefFromWasmAbi for UtxoEntryReference
impl RefFromWasmAbi for UtxoEntryReference
§type Anchor = Ref<'static, UtxoEntryReference>
type Anchor = Ref<'static, UtxoEntryReference>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§unsafe fn ref_from_abi(
js: <UtxoEntryReference as RefFromWasmAbi>::Abi
) -> <UtxoEntryReference as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <UtxoEntryReference as RefFromWasmAbi>::Abi ) -> <UtxoEntryReference as RefFromWasmAbi>::Anchor
source§impl RefMutFromWasmAbi for UtxoEntryReference
impl RefMutFromWasmAbi for UtxoEntryReference
§type Anchor = RefMut<'static, UtxoEntryReference>
type Anchor = RefMut<'static, UtxoEntryReference>
Same as
RefFromWasmAbi::Anchor
source§unsafe fn ref_mut_from_abi(
js: <UtxoEntryReference as RefMutFromWasmAbi>::Abi
) -> <UtxoEntryReference as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <UtxoEntryReference as RefMutFromWasmAbi>::Abi ) -> <UtxoEntryReference as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
source§impl Serialize for UtxoEntryReference
impl Serialize for UtxoEntryReference
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
source§impl TryFrom<&JsValue> for UtxoEntryReference
impl TryFrom<&JsValue> for UtxoEntryReference
source§impl TryFrom<JsValue> for UtxoEntryReference
impl TryFrom<JsValue> for UtxoEntryReference
impl Eq for UtxoEntryReference
Auto Trait Implementations§
impl RefUnwindSafe for UtxoEntryReference
impl Send for UtxoEntryReference
impl Sync for UtxoEntryReference
impl Unpin for UtxoEntryReference
impl UnwindSafe for UtxoEntryReference
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
fn exact_from(value: T) -> U
§impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
fn exact_into(self) -> U
§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.