pub struct OnchainDataColumnSchema {
pub description: Option<Description>,
pub index_order: Option<i64>,
pub name: Option<String>,
pub nullable: Option<bool>,
pub type_: Option<String>,
}Expand description
Schema definition for a table column.
JSON schema
{
"description": "Schema definition for a table column.",
"examples": [
{
"description": "The signature of the decoded event log.",
"indexOrder": 0,
"name": "event_signature",
"nullable": false,
"type": "String"
}
],
"type": "object",
"properties": {
"description": {
"description": "Human-readable description of the column.",
"examples": [
"The signature of the decoded event log."
],
"allOf": [
{
"$ref": "#/components/schemas/Description"
}
]
},
"indexOrder": {
"description": "The order of the column in the index. A lower number means the column is more important for the index and should be first in the query.",
"examples": [
0
],
"type": "integer"
},
"name": {
"description": "Column name.",
"examples": [
"event_signature"
],
"type": "string"
},
"nullable": {
"description": "Whether this column can contain NULL values.",
"examples": [
false
],
"type": "boolean"
},
"type": {
"description": "Column data type.",
"examples": [
"String"
],
"type": "string"
}
}
}Fields§
§description: Option<Description>Human-readable description of the column.
index_order: Option<i64>The order of the column in the index. A lower number means the column is more important for the index and should be first in the query.
name: Option<String>Column name.
nullable: Option<bool>Whether this column can contain NULL values.
type_: Option<String>Column data type.
Implementations§
Source§impl OnchainDataColumnSchema
impl OnchainDataColumnSchema
pub fn builder() -> OnchainDataColumnSchema
Trait Implementations§
Source§impl Clone for OnchainDataColumnSchema
impl Clone for OnchainDataColumnSchema
Source§fn clone(&self) -> OnchainDataColumnSchema
fn clone(&self) -> OnchainDataColumnSchema
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 OnchainDataColumnSchema
impl Debug for OnchainDataColumnSchema
Source§impl Default for OnchainDataColumnSchema
impl Default for OnchainDataColumnSchema
Source§impl<'de> Deserialize<'de> for OnchainDataColumnSchema
impl<'de> Deserialize<'de> for OnchainDataColumnSchema
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<&OnchainDataColumnSchema> for OnchainDataColumnSchema
impl From<&OnchainDataColumnSchema> for OnchainDataColumnSchema
Source§fn from(value: &OnchainDataColumnSchema) -> Self
fn from(value: &OnchainDataColumnSchema) -> Self
Converts to this type from the input type.
Source§impl From<OnchainDataColumnSchema> for OnchainDataColumnSchema
impl From<OnchainDataColumnSchema> for OnchainDataColumnSchema
Source§fn from(value: OnchainDataColumnSchema) -> Self
fn from(value: OnchainDataColumnSchema) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnchainDataColumnSchema
impl Serialize for OnchainDataColumnSchema
Source§impl TryFrom<OnchainDataColumnSchema> for OnchainDataColumnSchema
impl TryFrom<OnchainDataColumnSchema> for OnchainDataColumnSchema
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnchainDataColumnSchema) -> Result<Self, ConversionError>
fn try_from(value: OnchainDataColumnSchema) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnchainDataColumnSchema
impl RefUnwindSafe for OnchainDataColumnSchema
impl Send for OnchainDataColumnSchema
impl Sync for OnchainDataColumnSchema
impl Unpin for OnchainDataColumnSchema
impl UnsafeUnpin for OnchainDataColumnSchema
impl UnwindSafe for OnchainDataColumnSchema
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