pub struct EstimateGasLimitInput {
pub data: String,
pub from: String,
pub to: String,
pub value: Option<String>,
}Expand description
EstimateGasLimitInput
JSON schema
{
"type": "object",
"required": [
"data",
"from",
"to"
],
"properties": {
"data": {
"description": "Transaction data (hex)",
"examples": [
"0xa9059cbb000000000000000000000000742d35cc6634c0532925a3b8d8c9c4b8a8d4c8b80000000000000000000000000000000000000000000000000de0b6b3a7640000"
],
"type": "string"
},
"from": {
"description": "From address",
"examples": [
"0x742d35Cc6634C0532925a3b8D8C9C4b8a8d4C8b8"
],
"type": "string"
},
"to": {
"description": "To address",
"examples": [
"0x742d35Cc6634C0532925a3b8D8C9C4b8a8d4C8b8"
],
"type": "string"
},
"value": {
"description": "Value to send (in wei, hex string)",
"examples": [
"0x0"
],
"type": "string"
}
}
}Fields§
§data: StringTransaction data (hex)
from: StringFrom address
to: StringTo address
value: Option<String>Value to send (in wei, hex string)
Implementations§
Source§impl EstimateGasLimitInput
impl EstimateGasLimitInput
pub fn builder() -> EstimateGasLimitInput
Trait Implementations§
Source§impl Clone for EstimateGasLimitInput
impl Clone for EstimateGasLimitInput
Source§fn clone(&self) -> EstimateGasLimitInput
fn clone(&self) -> EstimateGasLimitInput
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 EstimateGasLimitInput
impl Debug for EstimateGasLimitInput
Source§impl<'de> Deserialize<'de> for EstimateGasLimitInput
impl<'de> Deserialize<'de> for EstimateGasLimitInput
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<&EstimateGasLimitInput> for EstimateGasLimitInput
impl From<&EstimateGasLimitInput> for EstimateGasLimitInput
Source§fn from(value: &EstimateGasLimitInput) -> Self
fn from(value: &EstimateGasLimitInput) -> Self
Converts to this type from the input type.
Source§impl From<EstimateGasLimitInput> for EstimateGasLimitInput
impl From<EstimateGasLimitInput> for EstimateGasLimitInput
Source§fn from(value: EstimateGasLimitInput) -> Self
fn from(value: EstimateGasLimitInput) -> Self
Converts to this type from the input type.
Source§impl Serialize for EstimateGasLimitInput
impl Serialize for EstimateGasLimitInput
Source§impl TryFrom<EstimateGasLimitInput> for EstimateGasLimitInput
impl TryFrom<EstimateGasLimitInput> for EstimateGasLimitInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EstimateGasLimitInput) -> Result<Self, ConversionError>
fn try_from(value: EstimateGasLimitInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EstimateGasLimitInput
impl RefUnwindSafe for EstimateGasLimitInput
impl Send for EstimateGasLimitInput
impl Sync for EstimateGasLimitInput
impl Unpin for EstimateGasLimitInput
impl UnwindSafe for EstimateGasLimitInput
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