pub struct ColumnData {
pub name: String,
pub data_type: String,
pub physical_type: Option<String>,
pub nullable: bool,
pub primary_key: bool,
pub description: Option<String>,
pub quality: Option<Vec<HashMap<String, Value>>>,
pub relationships: Vec<PropertyRelationship>,
pub enum_values: Option<Vec<String>>,
}Expand description
Column data from import
Fields§
§name: String§data_type: String§physical_type: Option<String>Physical type - the actual database type (e.g., “DOUBLE”, “VARCHAR(100)”) For ODCS this maps to physicalType. Optional as not all formats distinguish logical/physical types.
nullable: bool§primary_key: bool§description: Option<String>Column description/documentation (from ODCS/ODCL description field)
quality: Option<Vec<HashMap<String, Value>>>Quality rules and validation checks (from ODCS/ODCL quality array)
relationships: Vec<PropertyRelationship>ODCS v3.1.0 relationships (property-level references) All $ref values are converted to relationships on import
enum_values: Option<Vec<String>>Enum values if this column is an enumeration type
Trait Implementations§
Source§impl Clone for ColumnData
impl Clone for ColumnData
Source§fn clone(&self) -> ColumnData
fn clone(&self) -> ColumnData
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 ColumnData
impl Debug for ColumnData
Source§impl<'de> Deserialize<'de> for ColumnData
impl<'de> Deserialize<'de> for ColumnData
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
Auto Trait Implementations§
impl Freeze for ColumnData
impl RefUnwindSafe for ColumnData
impl Send for ColumnData
impl Sync for ColumnData
impl Unpin for ColumnData
impl UnwindSafe for ColumnData
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