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: H256The uncle block hash.
required: boolWhether 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: HeaderThe header of the uncle block.
Miners must keep this unchanged when including this uncle in the new block.
Trait Implementations
sourceimpl Clone for UncleTemplate
impl Clone for UncleTemplate
sourcefn clone(&self) -> UncleTemplate
fn clone(&self) -> UncleTemplate
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 Debug for UncleTemplate
impl Debug for UncleTemplate
sourceimpl Default for UncleTemplate
impl Default for UncleTemplate
sourcefn default() -> UncleTemplate
fn default() -> UncleTemplate
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UncleTemplate
impl<'de> Deserialize<'de> for UncleTemplate
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 From<UncleTemplate> for UncleBlock
impl From<UncleTemplate> for UncleBlock
sourcefn from(template: UncleTemplate) -> Self
fn from(template: UncleTemplate) -> Self
Performs the conversion.
sourceimpl Hash for UncleTemplate
impl Hash for UncleTemplate
sourceimpl PartialEq<UncleTemplate> for UncleTemplate
impl PartialEq<UncleTemplate> for UncleTemplate
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &UncleTemplate) -> bool
fn ne(&self, other: &UncleTemplate) -> bool
This method tests for !=.
sourceimpl 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more