pub struct OnchainDataTableSchema {
pub columns: Vec<OnchainDataColumnSchema>,
pub database: Option<String>,
pub table: Option<String>,
}Expand description
Schema definition for a data table.
JSON schema
{
"description": "Schema definition for a data table.",
"examples": [
{
"columns": [
{
"description": "The signature of the decoded event log.",
"indexOrder": 0,
"name": "event_signature",
"nullable": false,
"type": "String"
},
{
"description": "The address of the smart contract that emitted the event log.",
"indexOrder": 1,
"name": "address",
"nullable": false,
"type": "String"
}
],
"database": "base",
"table": "events"
}
],
"type": "object",
"properties": {
"columns": {
"description": "Column definitions for this table.",
"examples": [
[
{
"description": "The signature of the decoded event log.",
"indexOrder": 0,
"name": "event_signature",
"nullable": false,
"type": "String"
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/OnchainDataColumnSchema"
}
},
"database": {
"description": "The blockchain network database this table belongs to.",
"examples": [
"base"
],
"type": "string"
},
"table": {
"description": "Table name.",
"examples": [
"events"
],
"type": "string"
}
}
}Fields§
§columns: Vec<OnchainDataColumnSchema>Column definitions for this table.
database: Option<String>The blockchain network database this table belongs to.
table: Option<String>Table name.
Implementations§
Source§impl OnchainDataTableSchema
impl OnchainDataTableSchema
pub fn builder() -> OnchainDataTableSchema
Trait Implementations§
Source§impl Clone for OnchainDataTableSchema
impl Clone for OnchainDataTableSchema
Source§fn clone(&self) -> OnchainDataTableSchema
fn clone(&self) -> OnchainDataTableSchema
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 OnchainDataTableSchema
impl Debug for OnchainDataTableSchema
Source§impl Default for OnchainDataTableSchema
impl Default for OnchainDataTableSchema
Source§impl<'de> Deserialize<'de> for OnchainDataTableSchema
impl<'de> Deserialize<'de> for OnchainDataTableSchema
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<&OnchainDataTableSchema> for OnchainDataTableSchema
impl From<&OnchainDataTableSchema> for OnchainDataTableSchema
Source§fn from(value: &OnchainDataTableSchema) -> Self
fn from(value: &OnchainDataTableSchema) -> Self
Converts to this type from the input type.
Source§impl From<OnchainDataTableSchema> for OnchainDataTableSchema
impl From<OnchainDataTableSchema> for OnchainDataTableSchema
Source§fn from(value: OnchainDataTableSchema) -> Self
fn from(value: OnchainDataTableSchema) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnchainDataTableSchema
impl Serialize for OnchainDataTableSchema
Source§impl TryFrom<OnchainDataTableSchema> for OnchainDataTableSchema
impl TryFrom<OnchainDataTableSchema> for OnchainDataTableSchema
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnchainDataTableSchema) -> Result<Self, ConversionError>
fn try_from(value: OnchainDataTableSchema) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnchainDataTableSchema
impl RefUnwindSafe for OnchainDataTableSchema
impl Send for OnchainDataTableSchema
impl Sync for OnchainDataTableSchema
impl Unpin for OnchainDataTableSchema
impl UnsafeUnpin for OnchainDataTableSchema
impl UnwindSafe for OnchainDataTableSchema
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