#[non_exhaustive]pub struct FeeParams {
pub mode: FeeMode,
pub gas_limit: Option<String>,
pub base_fee_per_gas: Option<String>,
pub max_priority_fee_per_gas: Option<String>,
pub max_fee_per_gas: Option<String>,
pub gas_price: Option<String>,
pub el: Option<String>,
pub rp: Option<TronBlockHeader>,
}Expand description
Mode-discriminated fee parameters. Exactly one of the three
mode-specific subsets is populated; the others are None.
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.mode: FeeModeActive fee mode (discriminator for the rest of this struct).
gas_limit: Option<String>Gas unit limit (EVM only, both EIP-1559 and LEGACY).
base_fee_per_gas: Option<String>Base fee per gas in wei (EIP-1559 only, informational).
max_priority_fee_per_gas: Option<String>Priority fee (tip) per gas in wei (EIP-1559 only).
max_fee_per_gas: Option<String>Maximum fee per gas in wei (EIP-1559 only).
gas_price: Option<String>Gas price in wei (LEGACY only).
el: Option<String>el — Tron energy fee limit in SUN (Tron only, optional).
Field name mirrors the wire-format short key.
rp: Option<TronBlockHeader>rp — Tron reference-point block header used for replay
protection and Transaction.raw_data construction. Required on
the Tron path; field name mirrors the wire-format short key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FeeParams
impl<'de> Deserialize<'de> for FeeParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FeeParams
impl RefUnwindSafe for FeeParams
impl Send for FeeParams
impl Sync for FeeParams
impl Unpin for FeeParams
impl UnsafeUnpin for FeeParams
impl UnwindSafe for FeeParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more