#[non_exhaustive]pub struct FeeReview {
pub mode: FeeMode,
pub estimated_max_cost: Option<String>,
pub gas_limit: Option<String>,
pub gas_price: Option<String>,
pub max_fee_per_gas: Option<String>,
pub max_priority_fee_per_gas: Option<String>,
pub base_fee_per_gas: Option<String>,
pub tron_fee_limit: Option<String>,
}Expand description
Fee summary sized for display to a human reviewer.
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.
estimated_max_cost: Option<String>Estimated maximum fee cost in smallest native units.
None encodes JSON null when the estimate is unavailable (Tron
without a fee limit).
gas_limit: Option<String>Gas unit limit (EVM only).
gas_price: Option<String>Gas price in wei (LEGACY only).
max_fee_per_gas: Option<String>Maximum fee per gas in wei (EIP-1559 only).
max_priority_fee_per_gas: Option<String>Priority fee per gas in wei (EIP-1559 only, when set).
base_fee_per_gas: Option<String>Base fee per gas in wei (EIP-1559 only, when set).
tron_fee_limit: Option<String>Tron fee limit in SUN (Tron only, when set).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FeeReview
impl<'de> Deserialize<'de> for FeeReview
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 FeeReview
impl RefUnwindSafe for FeeReview
impl Send for FeeReview
impl Sync for FeeReview
impl Unpin for FeeReview
impl UnsafeUnpin for FeeReview
impl UnwindSafe for FeeReview
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