Struct hwi::types::HWIPartiallySignedTransaction
source · pub struct HWIPartiallySignedTransaction {
pub psbt: PartiallySignedTransaction,
}
Fields§
§psbt: PartiallySignedTransaction
Methods from Deref<Target = PartiallySignedTransaction>§
sourcepub fn iter_funding_utxos(&self) -> impl Iterator<Item = Result<&TxOut, Error>>
pub fn iter_funding_utxos(&self) -> impl Iterator<Item = Result<&TxOut, Error>>
Returns an iterator for the funding UTXOs of the psbt
For each PSBT input that contains UTXO information Ok
is returned containing that information.
The order of returned items is same as the order of inputs.
Errors
The function returns error when UTXO information is not present or is invalid.
Panics
The function panics if the length of transaction inputs is not equal to the length of PSBT inputs.
Trait Implementations§
source§impl Clone for HWIPartiallySignedTransaction
impl Clone for HWIPartiallySignedTransaction
source§fn clone(&self) -> HWIPartiallySignedTransaction
fn clone(&self) -> HWIPartiallySignedTransaction
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<'de> Deserialize<'de> for HWIPartiallySignedTransaction
impl<'de> Deserialize<'de> for HWIPartiallySignedTransaction
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 PartialEq<HWIPartiallySignedTransaction> for HWIPartiallySignedTransaction
impl PartialEq<HWIPartiallySignedTransaction> for HWIPartiallySignedTransaction
source§fn eq(&self, other: &HWIPartiallySignedTransaction) -> bool
fn eq(&self, other: &HWIPartiallySignedTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.