Type Alias moonbeam_rpc_primitives_txpool::LegacyTransaction
pub type LegacyTransaction = LegacyTransaction;
Aliased Type§
struct LegacyTransaction {
pub nonce: U256,
pub gas_price: U256,
pub gas_limit: U256,
pub action: TransactionAction,
pub value: U256,
pub input: Vec<u8>,
pub signature: TransactionSignature,
}
Fields§
§nonce: U256
§gas_price: U256
§gas_limit: U256
§action: TransactionAction
§value: U256
§input: Vec<u8>
§signature: TransactionSignature
Implementations
§impl LegacyTransaction
impl LegacyTransaction
pub fn hash(&self) -> H256
pub fn to_message(self) -> LegacyTransactionMessage
Trait Implementations
§impl Decodable for LegacyTransaction
impl Decodable for LegacyTransaction
§impl Decode for LegacyTransaction
impl Decode for LegacyTransaction
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<LegacyTransaction, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<LegacyTransaction, 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<'de> Deserialize<'de> for LegacyTransaction
impl<'de> Deserialize<'de> for LegacyTransaction
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LegacyTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LegacyTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Encodable for LegacyTransaction
impl Encodable for LegacyTransaction
§fn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
§impl Encode for LegacyTransaction
impl Encode for LegacyTransaction
§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 EnvelopedDecodable for LegacyTransaction
impl EnvelopedDecodable for LegacyTransaction
§impl EnvelopedEncodable for LegacyTransaction
impl EnvelopedEncodable for LegacyTransaction
§impl PartialEq for LegacyTransaction
impl PartialEq for LegacyTransaction
§impl Serialize for LegacyTransaction
impl Serialize for LegacyTransaction
§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