pub struct UtxoEntryReference {
pub utxo: Arc<UtxoEntry>,
}Fields§
§utxo: Arc<UtxoEntry>Implementations§
Source§impl UtxoEntryReference
impl UtxoEntryReference
pub fn js_to_string(&self) -> Result<JsString>
pub fn entry(&self) -> UtxoEntry
pub fn outpoint(&self) -> TransactionOutpoint
pub fn address(&self) -> Option<Address>
pub fn amount(&self) -> u64
pub fn is_coinbase(&self) -> bool
pub fn block_daa_score(&self) -> u64
pub fn script_public_key(&self) -> ScriptPublicKey
Source§impl UtxoEntryReference
impl UtxoEntryReference
pub fn id(&self) -> UtxoEntryId
pub fn id_as_ref(&self) -> &UtxoEntryId
pub fn amount_as_ref(&self) -> &u64
pub fn transaction_id(&self) -> TransactionId
pub fn transaction_id_as_ref(&self) -> &TransactionId
Trait Implementations§
Source§impl AsRef<UtxoEntry> for UtxoEntryReference
impl AsRef<UtxoEntry> for UtxoEntryReference
Source§impl CastFromJs for UtxoEntryReference
impl CastFromJs for UtxoEntryReference
Source§fn try_ref_from_js_value<'a, R>(
js: &'a R,
) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
fn try_ref_from_js_value<'a, R>( js: &'a R, ) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
Obtain safe reference from
JsValueSource§fn try_long_ref_from_js_value<'a, R>(
js: &'a R,
) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
fn try_long_ref_from_js_value<'a, R>( js: &'a R, ) -> Result<<Self as RefFromWasmAbi>::Anchor, Error>
Obtain safe long reference from
JsValuefn try_ref_from_js_value_as_cast<'a, R>( js_value: &'a R, ) -> Result<Cast<'a, Self>, Error>
fn try_long_ref_from_js_value_as_cast<'a, R>( js: &'a R, ) -> Result<Cast<'a, Self>, Error>
Source§impl Clone for UtxoEntryReference
impl Clone for UtxoEntryReference
Source§fn clone(&self) -> UtxoEntryReference
fn clone(&self) -> UtxoEntryReference
Returns a duplicate of the value. Read more
1.0.0§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<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
Source§impl From<&UtxoEntryReference> for SerializableUtxoEntry
impl From<&UtxoEntryReference> for SerializableUtxoEntry
Source§fn from(utxo: &UtxoEntryReference) -> Self
fn from(utxo: &UtxoEntryReference) -> Self
Converts to this type from the input type.
Source§impl From<&UtxoEntryReference> for SerializableUtxoEntry
impl From<&UtxoEntryReference> for SerializableUtxoEntry
Source§fn from(utxo: &UtxoEntryReference) -> Self
fn from(utxo: &UtxoEntryReference) -> Self
Converts to this type from the input type.
Source§impl From<&UtxoEntryReference> for UtxoEntry
impl From<&UtxoEntryReference> for UtxoEntry
Source§fn from(value: &UtxoEntryReference) -> Self
fn from(value: &UtxoEntryReference) -> Self
Converts to this type from the input type.
Source§impl From<UtxoEntry> for UtxoEntryReference
impl From<UtxoEntry> for UtxoEntryReference
Source§impl From<UtxoEntryReference> for JsValue
impl From<UtxoEntryReference> for JsValue
Source§fn from(value: UtxoEntryReference) -> Self
fn from(value: UtxoEntryReference) -> Self
Converts to this type from the input type.
Source§impl From<UtxoEntryReference> for UtxoEntry
impl From<UtxoEntryReference> for UtxoEntry
Source§fn from(value: UtxoEntryReference) -> Self
fn from(value: UtxoEntryReference) -> Self
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 Ord for UtxoEntryReference
impl Ord for UtxoEntryReference
Source§impl PartialEq for UtxoEntryReference
impl PartialEq for UtxoEntryReference
Source§impl PartialOrd for UtxoEntryReference
impl PartialOrd for UtxoEntryReference
Source§impl RefFromWasmAbi for UtxoEntryReference
impl RefFromWasmAbi for UtxoEntryReference
Source§type Anchor = RcRef<UtxoEntryReference>
type Anchor = RcRef<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§impl Serialize for UtxoEntryReference
impl Serialize for UtxoEntryReference
Source§impl TryCastFromJs for UtxoEntryReference
impl TryCastFromJs for UtxoEntryReference
type Error = Error
Source§fn try_cast_from<'a, R>(value: &'a R) -> Result<Cast<'_, Self>, Self::Error>
fn try_cast_from<'a, R>(value: &'a R) -> Result<Cast<'_, Self>, Self::Error>
Try to cast a JsValue into a Rust object.
This should be user-defined function that
attempts to cast a JsValue into a Rust object
or interpret a source data and create a
temporary struct owned by by the
Cast.Source§fn try_owned_from(value: impl AsRef<JsValue>) -> Result<Self, Self::Error>
fn try_owned_from(value: impl AsRef<JsValue>) -> Result<Self, Self::Error>
Perform a user cast and consume the
Cast container.
This function will return a temporary user-created
object created during [try_cast_from] or a clone of the casted reference.fn try_captured_cast_from( js_value: impl AsRef<JsValue>, ) -> Result<Cast<'static, Self>, Self::Error>
Source§fn resolve<'a, R>(
js: &'a R,
create: impl FnOnce() -> Result<Self, Self::Error>,
) -> Result<Cast<'a, Self>, Self::Error>
fn resolve<'a, R>( js: &'a R, create: impl FnOnce() -> Result<Self, Self::Error>, ) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object, in cast of failure
invoke a user-supplied closure that can try to create an instance
of the object based on the supplied JsValue.
Source§fn resolve_cast<'a, R>(
js: &'a R,
create: impl FnOnce() -> Result<Cast<'a, Self>, Self::Error>,
) -> Result<Cast<'a, Self>, Self::Error>
fn resolve_cast<'a, R>( js: &'a R, create: impl FnOnce() -> Result<Cast<'a, Self>, Self::Error>, ) -> Result<Cast<'a, Self>, Self::Error>
Try to cast a JsValue into a Rust object, in cast of failure
invoke a user-supplied closure that can try to create an instance
of the object based on the supplied JsValue. Unlike the [
resolve]
function, this function expects create closure to return a Cast.
This is useful when routing the creation of the object to another
function that is capable of creating a compatible Cast wrapper.Source§impl TryFromJsValue for UtxoEntryReference
impl TryFromJsValue for UtxoEntryReference
Source§impl VectorFromWasmAbi for UtxoEntryReference
impl VectorFromWasmAbi for UtxoEntryReference
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[UtxoEntryReference]>
Source§impl VectorIntoWasmAbi for UtxoEntryReference
impl VectorIntoWasmAbi for UtxoEntryReference
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[UtxoEntryReference]>) -> Self::Abi
Source§impl WasmDescribeVector for UtxoEntryReference
impl WasmDescribeVector for UtxoEntryReference
impl Eq for UtxoEntryReference
impl SupportsConstructor for UtxoEntryReference
impl SupportsInstanceProperty for UtxoEntryReference
impl SupportsStaticProperty for UtxoEntryReference
Auto Trait Implementations§
impl Freeze for UtxoEntryReference
impl RefUnwindSafe for UtxoEntryReference
impl Send for UtxoEntryReference
impl Sync for UtxoEntryReference
impl Unpin for UtxoEntryReference
impl UnwindSafe for UtxoEntryReference
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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<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> 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 moreSource§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> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§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.