pub struct GasPriceResponse {
pub chain: String,
pub gas_price: String,
}Expand description
GasPriceResponse
JSON schema
{
"type": "object",
"required": [
"chain",
"gasPrice"
],
"properties": {
"chain": {
"description": "Chain symbol",
"examples": [
"ethereum"
],
"type": "string"
},
"gasPrice": {
"description": "Current gas price in wei (hex string)",
"examples": [
"0x5d21dba00"
],
"type": "string"
}
}
}Fields§
§chain: StringChain symbol
gas_price: StringCurrent gas price in wei (hex string)
Implementations§
Source§impl GasPriceResponse
impl GasPriceResponse
pub fn builder() -> GasPriceResponse
Trait Implementations§
Source§impl Clone for GasPriceResponse
impl Clone for GasPriceResponse
Source§fn clone(&self) -> GasPriceResponse
fn clone(&self) -> GasPriceResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GasPriceResponse
impl Debug for GasPriceResponse
Source§impl<'de> Deserialize<'de> for GasPriceResponse
impl<'de> Deserialize<'de> for GasPriceResponse
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
Source§impl From<&GasPriceResponse> for GasPriceResponse
impl From<&GasPriceResponse> for GasPriceResponse
Source§fn from(value: &GasPriceResponse) -> Self
fn from(value: &GasPriceResponse) -> Self
Converts to this type from the input type.
Source§impl From<GasPriceResponse> for GasPriceResponse
impl From<GasPriceResponse> for GasPriceResponse
Source§fn from(value: GasPriceResponse) -> Self
fn from(value: GasPriceResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for GasPriceResponse
impl Serialize for GasPriceResponse
Source§impl TryFrom<GasPriceResponse> for GasPriceResponse
impl TryFrom<GasPriceResponse> for GasPriceResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GasPriceResponse) -> Result<Self, ConversionError>
fn try_from(value: GasPriceResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GasPriceResponse
impl RefUnwindSafe for GasPriceResponse
impl Send for GasPriceResponse
impl Sync for GasPriceResponse
impl Unpin for GasPriceResponse
impl UnwindSafe for GasPriceResponse
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