pub struct ExecutionMetadataView {
pub gas_profile: Option<Vec<CostGasUsed>>,
pub version: u32,
}
Expand description
ExecutionMetadataView
JSON schema
{
"type": "object",
"required": [
"version"
],
"properties": {
"gas_profile": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/CostGasUsed"
}
},
"version": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
}
}
Fields§
§gas_profile: Option<Vec<CostGasUsed>>
§version: u32
Trait Implementations§
Source§impl Clone for ExecutionMetadataView
impl Clone for ExecutionMetadataView
Source§fn clone(&self) -> ExecutionMetadataView
fn clone(&self) -> ExecutionMetadataView
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 ExecutionMetadataView
impl Debug for ExecutionMetadataView
Source§impl<'de> Deserialize<'de> for ExecutionMetadataView
impl<'de> Deserialize<'de> for ExecutionMetadataView
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<&ExecutionMetadataView> for ExecutionMetadataView
impl From<&ExecutionMetadataView> for ExecutionMetadataView
Source§fn from(value: &ExecutionMetadataView) -> Self
fn from(value: &ExecutionMetadataView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutionMetadataView
impl RefUnwindSafe for ExecutionMetadataView
impl Send for ExecutionMetadataView
impl Sync for ExecutionMetadataView
impl Unpin for ExecutionMetadataView
impl UnwindSafe for ExecutionMetadataView
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