pub struct TransactionOutpoint {
pub transaction_id: TransactionId,
pub index: TransactionIndexType,
}Expand description
Represents a Kaspa transaction outpoint
Fields§
§transaction_id: TransactionId§index: TransactionIndexTypeImplementations§
Source§impl TransactionOutpoint
impl TransactionOutpoint
pub fn new(transaction_id: TransactionId, index: u32) -> Self
Trait Implementations§
Source§impl BorshDeserialize for TransactionOutpoint
impl BorshDeserialize for TransactionOutpoint
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for TransactionOutpoint
impl BorshSerialize for TransactionOutpoint
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§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 Default for TransactionOutpoint
impl Default for TransactionOutpoint
Source§fn default() -> TransactionOutpoint
fn default() -> TransactionOutpoint
Returns the “default value” for a type. Read more
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 Hash for TransactionOutpoint
impl Hash for TransactionOutpoint
Source§impl PartialEq for TransactionOutpoint
impl PartialEq for TransactionOutpoint
Source§impl Serialize for TransactionOutpoint
impl Serialize for TransactionOutpoint
impl Copy for TransactionOutpoint
impl Eq for TransactionOutpoint
impl StructuralPartialEq 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§
§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> 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