pub struct ConstraintLayout {
pub name: String,
pub constraint_type: u8,
pub columns: Vec<String>,
pub ref_table: Option<String>,
pub ref_columns: Option<Vec<String>>,
}Expand description
Plain, engine-agnostic view of a persisted constraint definition.
Fields§
§name: StringConstraint name.
constraint_type: u8ConstraintType discriminant byte.
columns: Vec<String>Constrained column names.
ref_table: Option<String>Referenced table (foreign keys).
ref_columns: Option<Vec<String>>Referenced columns (foreign keys).
Trait Implementations§
Source§impl Clone for ConstraintLayout
impl Clone for ConstraintLayout
Source§fn clone(&self) -> ConstraintLayout
fn clone(&self) -> ConstraintLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstraintLayout
impl Debug for ConstraintLayout
Source§impl PartialEq for ConstraintLayout
impl PartialEq for ConstraintLayout
Source§fn eq(&self, other: &ConstraintLayout) -> bool
fn eq(&self, other: &ConstraintLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstraintLayout
Auto Trait Implementations§
impl Freeze for ConstraintLayout
impl RefUnwindSafe for ConstraintLayout
impl Send for ConstraintLayout
impl Sync for ConstraintLayout
impl Unpin for ConstraintLayout
impl UnsafeUnpin for ConstraintLayout
impl UnwindSafe for ConstraintLayout
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