Struct hedera::Eip1559EthereumData

source ·
#[non_exhaustive]
pub struct Eip1559EthereumData { pub chain_id: Vec<u8>, pub nonce: Vec<u8>, pub max_priority_gas: Vec<u8>, pub max_gas: Vec<u8>, pub gas_limit: Vec<u8>, pub to: Vec<u8>, pub value: Vec<u8>, pub call_data: Vec<u8>, pub access_list: Vec<Vec<u8>>, pub recovery_id: Vec<u8>, pub r: Vec<u8>, pub s: Vec<u8>, }
Expand description

Data for an Eip 1559 ethereum transaction.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§chain_id: Vec<u8>

ID of the chain.

§nonce: Vec<u8>

Transaction’s nonce.

§max_priority_gas: Vec<u8>

An ‘optional’ additional fee in Ethereum that is paid directly to miners in order to incentivize them to include your transaction in a block. Not used in Hedera.

§max_gas: Vec<u8>

The maximum amount, in tinybars, that the payer of the hedera transaction is willing to pay to complete the transaction.

§gas_limit: Vec<u8>

The amount of gas available for the transaction.

§to: Vec<u8>

The receiver of the transaction.

§value: Vec<u8>

The transaction value.

§call_data: Vec<u8>

The raw call data.

§access_list: Vec<Vec<u8>>

Specifies an array of addresses and storage keys that the transaction plans to access.

§recovery_id: Vec<u8>

Recovery parameter used to ease the signature verification.

§r: Vec<u8>

The R value of the signature.

§s: Vec<u8>

The S value of the signature.

Implementations§

source§

impl Eip1559EthereumData

source

pub fn from_bytes(bytes: &[u8]) -> Result<Self>

Deserialize this data from rlp encoded bytes.

§Errors
source

pub fn to_bytes(&self) -> Vec<u8>

Convert this data to rlp encoded bytes.

Trait Implementations§

source§

impl Clone for Eip1559EthereumData

source§

fn clone(&self) -> Eip1559EthereumData

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
source§

impl Debug for Eip1559EthereumData

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more