pub struct SConnectedTransaction {
pub txid: Txid,
pub input: Vec<STxOut>,
pub output: Vec<STxOut>,
}
Expand description
Simple format of connected transaction. See fields for details of this struct.
Fields§
§txid: Txid
§input: Vec<STxOut>
§output: Vec<STxOut>
Trait Implementations§
source§impl Clone for SConnectedTransaction
impl Clone for SConnectedTransaction
source§fn clone(&self) -> SConnectedTransaction
fn clone(&self) -> SConnectedTransaction
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 ConnectedTx for SConnectedTransaction
impl ConnectedTx for SConnectedTransaction
source§fn from(tx: &Transaction) -> Self
fn from(tx: &Transaction) -> Self
Construct a ConnectedTx from Transaction without blank inputs. Read more
source§fn connect(
tx: Transaction,
tx_db: &TxDB,
blk_index: &BlockIndex,
blk_file: &BlkFile
) -> OpResult<Self>
fn connect( tx: Transaction, tx_db: &TxDB, blk_index: &BlockIndex, blk_file: &BlkFile ) -> OpResult<Self>
Build ConnectedTx from Tx,
and attach inputs to this ConnectedTx using tx-index.
source§impl Debug for SConnectedTransaction
impl Debug for SConnectedTransaction
source§impl<'de> Deserialize<'de> for SConnectedTransaction
impl<'de> Deserialize<'de> for SConnectedTransaction
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<SConnectedTransaction> for SConnectedTransaction
impl PartialEq<SConnectedTransaction> for SConnectedTransaction
source§fn eq(&self, other: &SConnectedTransaction) -> bool
fn eq(&self, other: &SConnectedTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SConnectedTransaction
impl Serialize for SConnectedTransaction
impl Eq for SConnectedTransaction
impl StructuralEq for SConnectedTransaction
impl StructuralPartialEq for SConnectedTransaction
Auto Trait Implementations§
impl RefUnwindSafe for SConnectedTransaction
impl Send for SConnectedTransaction
impl Sync for SConnectedTransaction
impl Unpin for SConnectedTransaction
impl UnwindSafe for SConnectedTransaction
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