pub struct OnchainDataResultMetadata {
pub cached: Option<bool>,
pub execution_time_ms: Option<i64>,
pub row_count: Option<i64>,
}
Expand description
Metadata about query execution.
JSON schema
{
"description": "Metadata about query execution.",
"examples": [
{
"cached": false,
"executionTimeMs": 145,
"rowCount": 2
}
],
"type": "object",
"properties": {
"cached": {
"description": "Whether the result was served from cache.",
"examples": [
false
],
"type": "boolean"
},
"executionTimeMs": {
"description": "Query execution time in milliseconds.",
"examples": [
145
],
"type": "integer"
},
"rowCount": {
"description": "Number of rows returned.",
"examples": [
2
],
"type": "integer"
}
}
}
Fields§
§cached: Option<bool>
Whether the result was served from cache.
execution_time_ms: Option<i64>
Query execution time in milliseconds.
row_count: Option<i64>
Number of rows returned.
Implementations§
Source§impl OnchainDataResultMetadata
impl OnchainDataResultMetadata
pub fn builder() -> OnchainDataResultMetadata
Trait Implementations§
Source§impl Clone for OnchainDataResultMetadata
impl Clone for OnchainDataResultMetadata
Source§fn clone(&self) -> OnchainDataResultMetadata
fn clone(&self) -> OnchainDataResultMetadata
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 OnchainDataResultMetadata
impl Debug for OnchainDataResultMetadata
Source§impl Default for OnchainDataResultMetadata
impl Default for OnchainDataResultMetadata
Source§impl<'de> Deserialize<'de> for OnchainDataResultMetadata
impl<'de> Deserialize<'de> for OnchainDataResultMetadata
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<&OnchainDataResultMetadata> for OnchainDataResultMetadata
impl From<&OnchainDataResultMetadata> for OnchainDataResultMetadata
Source§fn from(value: &OnchainDataResultMetadata) -> Self
fn from(value: &OnchainDataResultMetadata) -> Self
Converts to this type from the input type.
Source§impl From<OnchainDataResultMetadata> for OnchainDataResultMetadata
impl From<OnchainDataResultMetadata> for OnchainDataResultMetadata
Source§fn from(value: OnchainDataResultMetadata) -> Self
fn from(value: OnchainDataResultMetadata) -> Self
Converts to this type from the input type.
Source§impl TryFrom<OnchainDataResultMetadata> for OnchainDataResultMetadata
impl TryFrom<OnchainDataResultMetadata> for OnchainDataResultMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnchainDataResultMetadata) -> Result<Self, ConversionError>
fn try_from(value: OnchainDataResultMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnchainDataResultMetadata
impl RefUnwindSafe for OnchainDataResultMetadata
impl Send for OnchainDataResultMetadata
impl Sync for OnchainDataResultMetadata
impl Unpin for OnchainDataResultMetadata
impl UnwindSafe for OnchainDataResultMetadata
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