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

pub fn hash(&self) -> H256

pub fn to_message(self) -> LegacyTransactionMessage

Trait Implementations

§

impl Clone for LegacyTransaction

§

fn clone(&self) -> LegacyTransaction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for LegacyTransaction

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Decodable for LegacyTransaction

§

fn decode(rlp: &Rlp<'_>) -> Result<LegacyTransaction, DecoderError>

Decode a value from RLP bytes
§

impl Decode for LegacyTransaction

§

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,

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,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl<'de> Deserialize<'de> for LegacyTransaction

§

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

§

fn rlp_append(&self, s: &mut RlpStream)

Append a value to the stream
§

fn rlp_bytes(&self) -> BytesMut

Get rlp-encoded bytes for this instance
§

impl Encode for LegacyTransaction

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

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 encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl EnvelopedDecodable for LegacyTransaction

§

type PayloadDecoderError = DecoderError

Inner payload decoder error.
§

fn decode( bytes: &[u8], ) -> Result<LegacyTransaction, EnvelopedDecoderError<<LegacyTransaction as EnvelopedDecodable>::PayloadDecoderError>>

Decode raw bytes to a Self type.
§

impl EnvelopedEncodable for LegacyTransaction

§

fn type_id(&self) -> Option<u8>

Type Id of the transaction.
§

fn encode_payload(&self) -> BytesMut

Encode inner payload.
§

fn encode(&self) -> BytesMut

Convert self to an owned vector.
§

impl PartialEq for LegacyTransaction

§

fn eq(&self, other: &LegacyTransaction) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Serialize for LegacyTransaction

§

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 TypeInfo for LegacyTransaction

§

type Identity = LegacyTransaction

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl EncodeLike for LegacyTransaction

§

impl Eq for LegacyTransaction

§

impl StructuralPartialEq for LegacyTransaction