Struct ckb_jsonrpc_types::UncleTemplate
source · 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§
source§impl Clone for UncleTemplate
impl Clone for UncleTemplate
source§fn clone(&self) -> UncleTemplate
fn clone(&self) -> UncleTemplate
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 Debug for UncleTemplate
impl Debug for UncleTemplate
source§impl Default for UncleTemplate
impl Default for UncleTemplate
source§fn default() -> UncleTemplate
fn default() -> UncleTemplate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UncleTemplate
impl<'de> Deserialize<'de> for UncleTemplate
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 From<UncleTemplate> for UncleBlock
impl From<UncleTemplate> for UncleBlock
source§fn from(template: UncleTemplate) -> Self
fn from(template: UncleTemplate) -> Self
Converts to this type from the input type.
source§impl Hash for UncleTemplate
impl Hash for UncleTemplate
source§impl PartialEq for UncleTemplate
impl PartialEq for UncleTemplate
source§fn eq(&self, other: &UncleTemplate) -> bool
fn eq(&self, other: &UncleTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UncleTemplate
impl Serialize for UncleTemplate
impl Eq for UncleTemplate
impl StructuralEq for UncleTemplate
impl StructuralPartialEq for UncleTemplate
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§
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