pub struct Column {Show 13 fields
pub name: Option<Loose<String>>,
pub description: Option<Loose<Text>>,
pub data_type: Option<Loose<Text>>,
pub meta: Option<IgnoredAny>,
pub tags: Option<IgnoredAny>,
pub quote: Option<IgnoredAny>,
pub tests: Option<IgnoredAny>,
pub data_tests: Option<IgnoredAny>,
pub constraints: Option<IgnoredAny>,
pub config: Option<IgnoredAny>,
pub docs: Option<IgnoredAny>,
pub granularity: Option<IgnoredAny>,
pub unknown: UnknownKeys,
}Expand description
A column of the table. dre validate --live checks that it exists and, with data_type, that its type matches loosely.
Fields§
§name: Option<Loose<String>>The column’s name (compared case-insensitively).
description: Option<Loose<Text>>What the column holds.
data_type: Option<Loose<Text>>The column’s SQL type, e.g. bigint, varchar, timestamp; compared loosely with what the database returns.
meta: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
quote: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
tests: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
data_tests: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
constraints: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
config: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
docs: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
granularity: Option<IgnoredAny>A dbt key DRE accepts but doesn’t use yet (noted by dre validate).
unknown: UnknownKeysImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
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>,
Source§impl JsonSchema for Column
impl JsonSchema for Column
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more