Struct ckb_jsonrpc_types::CellbaseTemplate [−][src]
pub struct CellbaseTemplate {
pub hash: H256,
pub cycles: Option<Cycle>,
pub data: Transaction,
}
Expand description
The cellbase transaction template of the new block for miners.
Fields
hash: H256
The cellbase transaction hash.
cycles: Option<Cycle>
The hint of how many cycles this transaction consumes.
Miners can utilize this field to ensure that the total cycles do not exceed the limit while selecting transactions.
data: Transaction
The cellbase transaction.
Trait Implementations
Returns the “default value” for a type. Read more
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CellbaseTemplate
impl Send for CellbaseTemplate
impl Sync for CellbaseTemplate
impl Unpin for CellbaseTemplate
impl UnwindSafe for CellbaseTemplate
Blanket Implementations
Mutably borrows from an owned value. Read more