Type Alias fp_ethereum::Block
pub type Block = Block<TransactionV2>;
Aliased Type§
struct Block {
pub header: Header,
pub transactions: Vec<TransactionV2>,
pub ommers: Vec<Header>,
}
Fields§
§header: Header
§transactions: Vec<TransactionV2>
§ommers: Vec<Header>
Implementations
Trait Implementations
§impl<'de, T> Deserialize<'de> for Block<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Block<T>where
T: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Block<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Block<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> StructuralPartialEq for Block<T>
impl<T> Eq for Block<T>where
T: Eq,
§impl<T> Serialize for Block<T>where
T: Serialize,
impl<T> Serialize for Block<T>where
T: Serialize,
§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
impl<T> EncodeLike for Block<T>where
Vec<T>: Encode,
§impl<T> Decode for Block<T>where
Vec<T>: Decode,
impl<T> Decode for Block<T>where
Vec<T>: Decode,
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Block<T>, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Block<T>, 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
§impl From<Block<TransactionV1>> for Block<TransactionV2>
impl From<Block<TransactionV1>> for Block<TransactionV2>
§fn from(t: Block<TransactionV1>) -> Block<TransactionV2>
fn from(t: Block<TransactionV1>) -> Block<TransactionV2>
Converts to this type from the input type.
impl<T> StructuralEq for Block<T>
§impl<T> Encode for Block<T>where
Vec<T>: Encode,
impl<T> Encode for Block<T>where
Vec<T>: Encode,
§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
§impl<T> Encodable for Block<T>where
T: EnvelopedEncodable,
impl<T> Encodable for Block<T>where
T: EnvelopedEncodable,
§fn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream