pub enum TransactionScanningResponseBodySimulation {
Error {
error: String,
},
Success {
assets_diffs: Vec<TransactionScanningResponseBodySimulationAssetsDiffsItem>,
exposures: Vec<TransactionScanningResponseBodySimulationExposuresItem>,
params: Option<TransactionScanningResponseBodySimulationParams>,
},
}Expand description
TransactionScanningResponseBodySimulation
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"error",
"status"
],
"properties": {
"error": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"Error"
]
}
}
},
{
"type": "object",
"required": [
"assets_diffs",
"exposures",
"status"
],
"properties": {
"assets_diffs": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"in",
"out"
],
"properties": {
"asset": {
"type": "object",
"properties": {
"decimals": {
"type": "number"
},
"logo_url": {
"type": "string"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"in": {
"type": "array",
"items": {
"type": "object",
"properties": {
"usd_price": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"out": {
"type": "array",
"items": {
"type": "object",
"properties": {
"usd_price": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
},
"exposures": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"spenders"
],
"properties": {
"asset": {
"type": "object",
"properties": {
"decimals": {
"type": "number"
},
"logo_url": {
"type": "string"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"spenders": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"usd_price": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
},
"params": {
"type": "object",
"properties": {
"block_tag": {
"type": "string"
},
"calldata": {
"type": "object",
"required": [
"function_selector"
],
"properties": {
"function_declaration": {
"type": "string"
},
"function_selector": {
"type": "string"
},
"function_signature": {
"type": "string"
}
}
},
"chain": {
"type": "string"
},
"data": {
"type": "string"
},
"from": {
"type": "string"
},
"gas": {
"type": "string"
},
"gas_price": {
"type": "string"
},
"to": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"status": {
"type": "string",
"enum": [
"Success"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for TransactionScanningResponseBodySimulation
impl Clone for TransactionScanningResponseBodySimulation
Source§fn clone(&self) -> TransactionScanningResponseBodySimulation
fn clone(&self) -> TransactionScanningResponseBodySimulation
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<'de> Deserialize<'de> for TransactionScanningResponseBodySimulation
impl<'de> Deserialize<'de> for TransactionScanningResponseBodySimulation
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<&TransactionScanningResponseBodySimulation> for TransactionScanningResponseBodySimulation
impl From<&TransactionScanningResponseBodySimulation> for TransactionScanningResponseBodySimulation
Source§fn from(value: &TransactionScanningResponseBodySimulation) -> Self
fn from(value: &TransactionScanningResponseBodySimulation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionScanningResponseBodySimulation
impl RefUnwindSafe for TransactionScanningResponseBodySimulation
impl Send for TransactionScanningResponseBodySimulation
impl Sync for TransactionScanningResponseBodySimulation
impl Unpin for TransactionScanningResponseBodySimulation
impl UnsafeUnpin for TransactionScanningResponseBodySimulation
impl UnwindSafe for TransactionScanningResponseBodySimulation
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