pub struct InheritedDefinitions {
pub expressions: Vec<String>,
pub not_nulls: Vec<InheritedNotNull>,
pub keys: usize,
pub foreign_keys: usize,
pub unique_indexes: Vec<Vec<IndexKey>>,
}Expand description
What a new table takes from its parents before its own definitions: the columns whose expressions the parents give, and the keys and foreign keys a partition clones from its parent.
Fields§
§expressions: Vec<String>The columns whose default or generation expression a parent gives and the statement does not replace, which heap_create_with_catalog stores with the relation.
not_nulls: Vec<InheritedNotNull>The NOT NULL constraints the parents give, in parent order, which AddRelationNotNullConstraints creates after the declared ones.
keys: usizeThe parent’s keys, which precede the declared keys of the table.
foreign_keys: usizeThe parent’s foreign keys, which precede the declared foreign keys of the table.
unique_indexes: Vec<Vec<IndexKey>>The key attributes of the parent’s unique indexes that no key constraint owns.
Trait Implementations§
Source§impl Clone for InheritedDefinitions
impl Clone for InheritedDefinitions
Source§impl Debug for InheritedDefinitions
impl Debug for InheritedDefinitions
Source§impl Default for InheritedDefinitions
impl Default for InheritedDefinitions
Source§impl PartialEq for InheritedDefinitions
impl PartialEq for InheritedDefinitions
impl StructuralPartialEq for InheritedDefinitions
Auto Trait Implementations§
impl Freeze for InheritedDefinitions
impl RefUnwindSafe for InheritedDefinitions
impl Send for InheritedDefinitions
impl Sync for InheritedDefinitions
impl Unpin for InheritedDefinitions
impl UnsafeUnpin for InheritedDefinitions
impl UnwindSafe for InheritedDefinitions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more