Struct bitcoin_qt::TransactionRecord
source · pub struct TransactionRecord { /* private fields */ }
Expand description
| UI model for a transaction. A core transaction | can be represented by multiple UI transactions | if it has multiple outputs. |
Implementations§
source§impl TransactionRecord
impl TransactionRecord
pub fn new_with_hash_and_time(hash: u256, time: i64) -> Self
pub fn new( hash: u256, time: i64, ty: TransactionRecordType, address: &String, debit: &Amount, credit: &Amount ) -> Self
sourcepub fn show_transaction(&mut self) -> bool
pub fn show_transaction(&mut self) -> bool
| Return positive answer if transaction | should be shown in list. | | Decompose CWallet transaction to model | transaction records. |
sourcepub fn decompose_transaction(
&mut self,
wtx: &WalletTx
) -> QList<TransactionRecord>
pub fn decompose_transaction( &mut self, wtx: &WalletTx ) -> QList<TransactionRecord>
| Decompose CWallet transaction to model | transaction records. |
sourcepub fn update_status(
&mut self,
wtx: &WalletTxStatus,
block_hash: &u256,
num_blocks: i32,
block_time: i64
)
pub fn update_status( &mut self, wtx: &WalletTxStatus, block_hash: &u256, num_blocks: i32, block_time: i64 )
| Update status from core wallet tx. |
sourcepub fn status_update_needed(&self, block_hash: &u256) -> bool
pub fn status_update_needed(&self, block_hash: &u256) -> bool
| Return whether a status update is needed. |
sourcepub fn get_tx_hash(&self) -> String
pub fn get_tx_hash(&self) -> String
| Return the unique identifier for this | transaction (part) |
sourcepub fn get_output_index(&self) -> i32
pub fn get_output_index(&self) -> i32
| Return the output index of the subtransaction |
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TransactionRecord
impl Send for TransactionRecord
impl Sync for TransactionRecord
impl Unpin for TransactionRecord
impl UnwindSafe for TransactionRecord
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more