pub struct SchemaColumn {
pub name: String,
pub data_type: String,
pub nullable: Option<bool>,
pub primary_key: bool,
pub unique: bool,
pub references: Option<SchemaColumnReference>,
}Expand description
Column definition used for schema-aware validation.
Fields§
§name: StringColumn name.
data_type: StringOptional column data type (currently informational).
nullable: Option<bool>Whether the column allows NULL values.
primary_key: boolWhether this column is part of a primary key.
unique: boolWhether this column has a uniqueness constraint.
references: Option<SchemaColumnReference>Optional column-level foreign key reference.
Trait Implementations§
Source§impl Clone for SchemaColumn
impl Clone for SchemaColumn
Source§fn clone(&self) -> SchemaColumn
fn clone(&self) -> SchemaColumn
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 SchemaColumn
impl Debug for SchemaColumn
Source§impl<'de> Deserialize<'de> for SchemaColumn
impl<'de> Deserialize<'de> for SchemaColumn
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 SchemaColumn
impl RefUnwindSafe for SchemaColumn
impl Send for SchemaColumn
impl Sync for SchemaColumn
impl Unpin for SchemaColumn
impl UnsafeUnpin for SchemaColumn
impl UnwindSafe for SchemaColumn
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