pub struct OnchainDataResultSchema {
pub columns: Vec<OnchainDataResultSchemaColumnsItem>,
}
Expand description
Schema information for the query result. This is a derived schema from the query result, so types may not match the underlying table.
JSON schema
{
"description": "Schema information for the query result. This is a derived schema from the query result, so types may not match the underlying table.\n",
"examples": [
{
"columns": [
{
"name": "block_number",
"type": "UInt64"
},
{
"name": "transaction_hash",
"type": "String"
}
]
}
],
"type": "object",
"properties": {
"columns": {
"description": "Column definitions.",
"type": "array",
"items": {
"examples": [
{
"description": "The signature of the event.",
"name": "event_signature",
"type": "String"
}
],
"type": "object",
"properties": {
"name": {
"description": "Column name.",
"type": "string"
},
"type": {
"description": "Column data type (ClickHouse types).",
"type": "string",
"enum": [
"String",
"UInt8",
"UInt16",
"UInt32",
"UInt64",
"UInt128",
"UInt256",
"Int8",
"Int16",
"Int32",
"Int64",
"Int128",
"Int256",
"Float32",
"Float64",
"Bool",
"Date",
"DateTime",
"DateTime64",
"UUID"
]
}
}
}
}
}
}
Fields§
§columns: Vec<OnchainDataResultSchemaColumnsItem>
Column definitions.
Implementations§
Source§impl OnchainDataResultSchema
impl OnchainDataResultSchema
pub fn builder() -> OnchainDataResultSchema
Trait Implementations§
Source§impl Clone for OnchainDataResultSchema
impl Clone for OnchainDataResultSchema
Source§fn clone(&self) -> OnchainDataResultSchema
fn clone(&self) -> OnchainDataResultSchema
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 OnchainDataResultSchema
impl Debug for OnchainDataResultSchema
Source§impl Default for OnchainDataResultSchema
impl Default for OnchainDataResultSchema
Source§impl<'de> Deserialize<'de> for OnchainDataResultSchema
impl<'de> Deserialize<'de> for OnchainDataResultSchema
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<&OnchainDataResultSchema> for OnchainDataResultSchema
impl From<&OnchainDataResultSchema> for OnchainDataResultSchema
Source§fn from(value: &OnchainDataResultSchema) -> Self
fn from(value: &OnchainDataResultSchema) -> Self
Converts to this type from the input type.
Source§impl From<OnchainDataResultSchema> for OnchainDataResultSchema
impl From<OnchainDataResultSchema> for OnchainDataResultSchema
Source§fn from(value: OnchainDataResultSchema) -> Self
fn from(value: OnchainDataResultSchema) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnchainDataResultSchema
impl Serialize for OnchainDataResultSchema
Source§impl TryFrom<OnchainDataResultSchema> for OnchainDataResultSchema
impl TryFrom<OnchainDataResultSchema> for OnchainDataResultSchema
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnchainDataResultSchema) -> Result<Self, ConversionError>
fn try_from(value: OnchainDataResultSchema) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnchainDataResultSchema
impl RefUnwindSafe for OnchainDataResultSchema
impl Send for OnchainDataResultSchema
impl Sync for OnchainDataResultSchema
impl Unpin for OnchainDataResultSchema
impl UnwindSafe for OnchainDataResultSchema
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