pub struct GasCost {
pub gas_type: String,
pub estimate: Option<String>,
pub limit: Option<String>,
pub amount: String,
pub amount_usd: Option<String>,
pub price: Option<String>,
pub token: Token,
}Expand description
Gas cost
Fields§
§gas_type: StringType of gas cost
estimate: Option<String>Estimate gas
limit: Option<String>Gas limit
amount: StringGas amount
amount_usd: Option<String>Amount in USD
price: Option<String>Gas price
token: TokenToken used for gas
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GasCost
impl<'de> Deserialize<'de> for GasCost
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 GasCost
impl RefUnwindSafe for GasCost
impl Send for GasCost
impl Sync for GasCost
impl Unpin for GasCost
impl UnwindSafe for GasCost
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