Struct ckb_jsonrpc_types::UncleTemplate [−][src]
pub struct UncleTemplate {
pub hash: H256,
pub required: bool,
pub proposals: Vec<ProposalShortId>,
pub header: Header,
}
Expand description
The uncle block template of the new block for miners.
Fields
hash: H256
The uncle block hash.
required: bool
Whether miners must include this uncle in the submit block.
proposals: Vec<ProposalShortId>
The proposals of the uncle block.
Miners must keep this unchanged when including this uncle in the new block.
header: Header
The header of the uncle block.
Miners must keep this unchanged when including this uncle in the new block.
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 UncleTemplate
impl Send for UncleTemplate
impl Sync for UncleTemplate
impl Unpin for UncleTemplate
impl UnwindSafe for UncleTemplate
Blanket Implementations
Mutably borrows from an owned value. Read more