Struct kaspa_wasm::TransactionOutpoint
source · pub struct TransactionOutpoint {
pub transaction_id: Hash,
pub index: u32,
}
Expand description
Represents a Kaspa transaction outpoint
Fields§
§transaction_id: Hash
§index: u32
Implementations§
source§impl TransactionOutpoint
impl TransactionOutpoint
pub fn new(transaction_id: Hash, index: u32) -> TransactionOutpoint
Trait Implementations§
source§impl BorshDeserialize for TransactionOutpointwhere
Hash: BorshDeserialize,
u32: BorshDeserialize,
impl BorshDeserialize for TransactionOutpointwhere
Hash: BorshDeserialize,
u32: BorshDeserialize,
source§fn deserialize(buf: &mut &[u8]) -> Result<TransactionOutpoint, Error>
fn deserialize(buf: &mut &[u8]) -> Result<TransactionOutpoint, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§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.
source§impl BorshSchema for TransactionOutpointwhere
Hash: BorshSchema,
u32: BorshSchema,
impl BorshSchema for TransactionOutpointwhere
Hash: BorshSchema,
u32: BorshSchema,
source§fn declaration() -> String
fn declaration() -> String
Get the name of the type without brackets.
source§fn add_definitions_recursively(definitions: &mut HashMap<String, Definition>)
fn add_definitions_recursively(definitions: &mut HashMap<String, Definition>)
Recursively, using DFS, add type definitions required for this type. For primitive types
this is an empty map. Type definition explains how to serialize/deserialize a type.
§fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition>
)
fn add_definition( declaration: String, definition: Definition, definitions: &mut HashMap<String, Definition> )
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
source§impl BorshSerialize for TransactionOutpointwhere
Hash: BorshSerialize,
u32: BorshSerialize,
impl BorshSerialize for TransactionOutpointwhere
Hash: BorshSerialize,
u32: BorshSerialize,
source§impl Clone for TransactionOutpoint
impl Clone for TransactionOutpoint
source§fn clone(&self) -> TransactionOutpoint
fn clone(&self) -> TransactionOutpoint
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 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<TransactionOutpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionOutpoint, <__D as Deserializer<'de>>::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) -> TransactionOutpoint
fn from(outpoint: TransactionOutpoint) -> TransactionOutpoint
Converts to this type from the input type.
source§impl From<TransactionOutpoint> for TransactionOutpoint
impl From<TransactionOutpoint> for TransactionOutpoint
source§fn from(outpoint: TransactionOutpoint) -> TransactionOutpoint
fn from(outpoint: TransactionOutpoint) -> TransactionOutpoint
Converts to this type from the input type.
source§impl From<TransactionOutpoint> for TransactionOutpointInner
impl From<TransactionOutpoint> for TransactionOutpointInner
source§fn from(outpoint: TransactionOutpoint) -> TransactionOutpointInner
fn from(outpoint: TransactionOutpoint) -> TransactionOutpointInner
Converts to this type from the input type.
source§impl Hash for TransactionOutpoint
impl Hash for TransactionOutpoint
source§impl PartialEq for TransactionOutpoint
impl PartialEq for TransactionOutpoint
source§fn eq(&self, other: &TransactionOutpoint) -> bool
fn eq(&self, other: &TransactionOutpoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransactionOutpoint
impl Serialize for TransactionOutpoint
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 Copy for TransactionOutpoint
impl Eq for TransactionOutpoint
impl StructuralEq for TransactionOutpoint
impl StructuralPartialEq for TransactionOutpoint
Auto Trait Implementations§
impl RefUnwindSafe for TransactionOutpoint
impl Send for TransactionOutpoint
impl Sync for TransactionOutpoint
impl Unpin for TransactionOutpoint
impl UnwindSafe for TransactionOutpoint
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<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.