pub struct Constraints {
pub keys: Vec<(Vec<u16>, bool)>,
pub foreign: Vec<StoredForeign>,
}Expand description
A table’s primary, unique and foreign keys, as the file stores them.
Columns are places in the table, and a foreign key names the table it points at by name alone, because every table in one file is in one schema.
Fields§
§keys: Vec<(Vec<u16>, bool)>Each key’s columns, and whether it is the primary key rather than a unique one.
foreign: Vec<StoredForeign>Each foreign key.
Implementations§
Trait Implementations§
Source§impl Clone for Constraints
impl Clone for Constraints
Source§impl Debug for Constraints
impl Debug for Constraints
Source§impl Default for Constraints
impl Default for Constraints
impl Eq for Constraints
Source§impl PartialEq for Constraints
impl PartialEq for Constraints
impl StructuralPartialEq for Constraints
Auto Trait Implementations§
impl Freeze for Constraints
impl RefUnwindSafe for Constraints
impl Send for Constraints
impl Sync for Constraints
impl Unpin for Constraints
impl UnsafeUnpin for Constraints
impl UnwindSafe for Constraints
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