pub struct TransactionOutpoint { /* private fields */ }
Expand description
Represents a Kaspa transaction outpoint.
NOTE: This struct is immutable - to create a custom outpoint
use the TransactionOutpoint::new
constructor. (in JavaScript
use new TransactionOutpoint(transactionId, index)
).
@category Consensus
Implementations§
Source§impl TransactionOutpoint
impl TransactionOutpoint
pub fn new(transaction_id: TransactionId, index: u32) -> TransactionOutpoint
pub fn inner(&self) -> &TransactionOutpointInner
pub fn transaction_id(&self) -> TransactionId
pub fn index(&self) -> TransactionIndexType
pub fn transaction_id_as_ref(&self) -> &TransactionId
pub fn id(&self) -> &TransactionOutpointInner
Trait Implementations§
Source§impl CastFromJs for TransactionOutpoint
impl CastFromJs for TransactionOutpoint
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
JsValue
Source§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
JsValue
fn 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 TransactionOutpoint
impl Clone for TransactionOutpoint
Source§fn clone(&self) -> TransactionOutpoint
fn clone(&self) -> TransactionOutpoint
Returns a duplicate 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 TransactionOutpoint
impl Debug for TransactionOutpoint
Source§impl<'de> Deserialize<'de> for TransactionOutpoint
impl<'de> Deserialize<'de> for TransactionOutpoint
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 Display for TransactionOutpoint
impl Display for TransactionOutpoint
Source§impl From<&TransactionOutpoint> for TransactionOutpoint
impl From<&TransactionOutpoint> for TransactionOutpoint
Source§fn from(outpoint: &TransactionOutpoint) -> Self
fn from(outpoint: &TransactionOutpoint) -> Self
Converts to this type from the input type.
Source§impl From<TransactionOutpoint> for JsValue
impl From<TransactionOutpoint> for JsValue
Source§fn from(value: TransactionOutpoint) -> Self
fn from(value: TransactionOutpoint) -> Self
Converts to this type from the input type.
Source§impl From<TransactionOutpoint> for TransactionOutpoint
impl From<TransactionOutpoint> for TransactionOutpoint
Source§fn from(outpoint: TransactionOutpoint) -> Self
fn from(outpoint: TransactionOutpoint) -> Self
Converts to this type from the input type.
Source§impl From<TransactionOutpoint> for TransactionOutpoint
impl From<TransactionOutpoint> for TransactionOutpoint
Source§fn from(outpoint: TransactionOutpoint) -> Self
fn from(outpoint: TransactionOutpoint) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TransactionOutpoint
impl FromWasmAbi for TransactionOutpoint
Source§impl IntoWasmAbi for TransactionOutpoint
impl IntoWasmAbi for TransactionOutpoint
Source§impl RefFromWasmAbi for TransactionOutpoint
impl RefFromWasmAbi for TransactionOutpoint
Source§type Anchor = RcRef<TransactionOutpoint>
type Anchor = RcRef<TransactionOutpoint>
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 TransactionOutpoint
impl Serialize for TransactionOutpoint
Source§impl TryFrom<&JsValue> for TransactionOutpoint
impl TryFrom<&JsValue> for TransactionOutpoint
Source§impl TryFromJsValue for TransactionOutpoint
impl TryFromJsValue for TransactionOutpoint
Source§impl VectorFromWasmAbi for TransactionOutpoint
impl VectorFromWasmAbi for TransactionOutpoint
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TransactionOutpoint]>
Source§impl VectorIntoJsValue for TransactionOutpoint
impl VectorIntoJsValue for TransactionOutpoint
fn vector_into_jsvalue(vector: Box<[TransactionOutpoint]>) -> JsValue
Source§impl VectorIntoWasmAbi for TransactionOutpoint
impl VectorIntoWasmAbi for TransactionOutpoint
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TransactionOutpoint]>) -> Self::Abi
Source§impl WasmDescribeVector for TransactionOutpoint
impl WasmDescribeVector for TransactionOutpoint
impl SupportsConstructor for TransactionOutpoint
impl SupportsInstanceProperty for TransactionOutpoint
impl SupportsStaticProperty for TransactionOutpoint
Auto Trait Implementations§
impl Freeze for TransactionOutpoint
impl RefUnwindSafe for TransactionOutpoint
impl Send for TransactionOutpoint
impl Sync for TransactionOutpoint
impl Unpin for TransactionOutpoint
impl UnwindSafe for TransactionOutpoint
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<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::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
.