pub struct ConstraintDef {
pub schema: String,
pub table_name: String,
pub name: String,
pub constraint_type: String,
pub definition: String,
}Expand description
Definition of a table constraint.
Fields§
§schema: StringSchema the constraint belongs to.
table_name: StringName of the table the constraint is on.
name: StringName of the constraint.
constraint_type: StringType of constraint (e.g. PRIMARY KEY, UNIQUE, FOREIGN KEY, CHECK).
definition: StringFull constraint definition expression.
Trait Implementations§
Source§impl Clone for ConstraintDef
impl Clone for ConstraintDef
Source§fn clone(&self) -> ConstraintDef
fn clone(&self) -> ConstraintDef
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 ConstraintDef
impl Debug for ConstraintDef
Source§impl PartialEq for ConstraintDef
impl PartialEq for ConstraintDef
Source§impl Serialize for ConstraintDef
impl Serialize for ConstraintDef
impl StructuralPartialEq for ConstraintDef
Auto Trait Implementations§
impl Freeze for ConstraintDef
impl RefUnwindSafe for ConstraintDef
impl Send for ConstraintDef
impl Sync for ConstraintDef
impl Unpin for ConstraintDef
impl UnsafeUnpin for ConstraintDef
impl UnwindSafe for ConstraintDef
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