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: Txid
The transaction id
wtxid: Wtxid
The wtxid of the transaction
raw_tx: Vec<u8>
The serilaized transaction bytes
fee: Amount
sigops: u32
Transaction sigops
weight: usize
Transaction 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
sourceimpl GetBlockTemplateResultTransaction
impl GetBlockTemplateResultTransaction
pub fn transaction(&self) -> Result<Transaction, Error>
Trait Implementations
sourceimpl Clone for GetBlockTemplateResultTransaction
impl Clone for GetBlockTemplateResultTransaction
sourcefn clone(&self) -> GetBlockTemplateResultTransaction
fn clone(&self) -> GetBlockTemplateResultTransaction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for GetBlockTemplateResultTransaction
impl<'de> Deserialize<'de> for GetBlockTemplateResultTransaction
sourcefn 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
sourceimpl PartialEq<GetBlockTemplateResultTransaction> for GetBlockTemplateResultTransaction
impl PartialEq<GetBlockTemplateResultTransaction> for GetBlockTemplateResultTransaction
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more