pub struct CostGasUsed {
pub cost: String,
pub cost_category: String,
pub gas_used: String,
}
Expand description
Shows gas profile. More info here.
JSON schema
{
"description": "Shows gas profile. More info [here](https://near.github.io/nearcore/architecture/gas/gas_profile.html?highlight=WASM_HOST_COST#example-transaction-gas-profile).",
"type": "object",
"required": [
"cost",
"cost_category",
"gas_used"
],
"properties": {
"cost": {
"type": "string"
},
"cost_category": {
"description": "Either ACTION_COST or WASM_HOST_COST.",
"type": "string"
},
"gas_used": {
"type": "string"
}
}
}
Fields§
§cost: String
§cost_category: String
Either ACTION_COST or WASM_HOST_COST.
gas_used: String
Trait Implementations§
Source§impl Clone for CostGasUsed
impl Clone for CostGasUsed
Source§fn clone(&self) -> CostGasUsed
fn clone(&self) -> CostGasUsed
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 CostGasUsed
impl Debug for CostGasUsed
Source§impl<'de> Deserialize<'de> for CostGasUsed
impl<'de> Deserialize<'de> for CostGasUsed
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<&CostGasUsed> for CostGasUsed
impl From<&CostGasUsed> for CostGasUsed
Source§fn from(value: &CostGasUsed) -> Self
fn from(value: &CostGasUsed) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CostGasUsed
impl RefUnwindSafe for CostGasUsed
impl Send for CostGasUsed
impl Sync for CostGasUsed
impl Unpin for CostGasUsed
impl UnwindSafe for CostGasUsed
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