pub type SignedBlock = SignedBlock<Block>;
Expand description
A Block signed with a Justification
Aliased Type§
struct SignedBlock {
pub block: Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<AccountId32, ()>, RuntimeCall, MultiSignature, (CheckOnlySudoAccount<Runtime>, CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckWeight<Runtime>, WeightReclaim<Runtime>)>>,
pub justifications: Option<Justifications>,
}
Fields§
§block: Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<AccountId32, ()>, RuntimeCall, MultiSignature, (CheckOnlySudoAccount<Runtime>, CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckWeight<Runtime>, WeightReclaim<Runtime>)>>
Full block.
justifications: Option<Justifications>
Block justification.
Trait Implementations
Source§impl<Block> Clone for SignedBlock<Block>where
Block: Clone,
impl<Block> Clone for SignedBlock<Block>where
Block: Clone,
Source§fn clone(&self) -> SignedBlock<Block>
fn clone(&self) -> SignedBlock<Block>
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<Block> Debug for SignedBlock<Block>where
Block: Debug,
impl<Block> Debug for SignedBlock<Block>where
Block: Debug,
Source§impl<Block> Decode for SignedBlock<Block>where
Block: Decode,
impl<Block> Decode for SignedBlock<Block>where
Block: Decode,
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SignedBlock<Block>, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<SignedBlock<Block>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Source§impl<'de, Block> Deserialize<'de> for SignedBlock<Block>where
Block: Deserialize<'de>,
impl<'de, Block> Deserialize<'de> for SignedBlock<Block>where
Block: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignedBlock<Block>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignedBlock<Block>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Block> Encode for SignedBlock<Block>where
Block: Encode,
impl<Block> Encode for SignedBlock<Block>where
Block: Encode,
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<Block> PartialEq for SignedBlock<Block>where
Block: PartialEq,
impl<Block> PartialEq for SignedBlock<Block>where
Block: PartialEq,
Source§impl<Block> Serialize for SignedBlock<Block>where
Block: Serialize,
impl<Block> Serialize for SignedBlock<Block>where
Block: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more