pub struct SchemaTable {
pub name: String,
pub schema: Option<String>,
pub columns: Vec<SchemaColumn>,
pub aliases: Vec<String>,
pub primary_key: Vec<String>,
pub unique_keys: Vec<Vec<String>>,
pub foreign_keys: Vec<SchemaForeignKey>,
}Expand description
Table definition used for schema-aware validation.
Fields§
§name: StringTable name.
schema: Option<String>Optional schema/namespace name.
columns: Vec<SchemaColumn>Column definitions.
aliases: Vec<String>Optional aliases that should resolve to this table.
primary_key: Vec<String>Optional primary key column list.
unique_keys: Vec<Vec<String>>Optional unique key groups.
foreign_keys: Vec<SchemaForeignKey>Optional table-level foreign keys.
Trait Implementations§
Source§impl Clone for SchemaTable
impl Clone for SchemaTable
Source§fn clone(&self) -> SchemaTable
fn clone(&self) -> SchemaTable
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 SchemaTable
impl Debug for SchemaTable
Source§impl<'de> Deserialize<'de> for SchemaTable
impl<'de> Deserialize<'de> for SchemaTable
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 SchemaTable
impl RefUnwindSafe for SchemaTable
impl Send for SchemaTable
impl Sync for SchemaTable
impl Unpin for SchemaTable
impl UnsafeUnpin for SchemaTable
impl UnwindSafe for SchemaTable
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