pub struct GetBlockTemplateResultTransaction {
pub txid: Txid,
pub wtxid: Wtxid,
pub raw_tx: Vec<u8>,
pub fee: Amount,
pub sigops: u32,
pub weight: usize,
pub depends: Vec<u32>,
}Expand description
Models a single transaction entry in the result of “getblocktemplate”
Fields§
§txid: TxidThe transaction id
wtxid: WtxidThe wtxid of the transaction
raw_tx: Vec<u8>The serilaized transaction bytes
fee: Amount§sigops: u32Transaction sigops
weight: usizeTransaction weight in weight units
depends: Vec<u32>Transactions that must be in present in the final block if this one is.
Indexed by a 1-based index in the GetBlockTemplateResult.transactions
list
Implementations§
source§impl GetBlockTemplateResultTransaction
impl GetBlockTemplateResultTransaction
pub fn transaction(&self) -> Result<Transaction, Error>
Trait Implementations§
source§impl Clone for GetBlockTemplateResultTransaction
impl Clone for GetBlockTemplateResultTransaction
source§fn clone(&self) -> GetBlockTemplateResultTransaction
fn clone(&self) -> GetBlockTemplateResultTransaction
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 GetBlockTemplateResultTransaction
impl<'de> Deserialize<'de> for GetBlockTemplateResultTransaction
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 for GetBlockTemplateResultTransaction
impl PartialEq for GetBlockTemplateResultTransaction
source§fn eq(&self, other: &GetBlockTemplateResultTransaction) -> bool
fn eq(&self, other: &GetBlockTemplateResultTransaction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for GetBlockTemplateResultTransaction
impl StructuralEq for GetBlockTemplateResultTransaction
impl StructuralPartialEq for GetBlockTemplateResultTransaction
Auto Trait Implementations§
impl RefUnwindSafe for GetBlockTemplateResultTransaction
impl Send for GetBlockTemplateResultTransaction
impl Sync for GetBlockTemplateResultTransaction
impl Unpin for GetBlockTemplateResultTransaction
impl UnwindSafe for GetBlockTemplateResultTransaction
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