pub struct CheckConstraint {
pub table: Cow<'static, str>,
pub name: Cow<'static, str>,
pub value: Cow<'static, str>,
}Expand description
Runtime check constraint entity
Fields§
§table: Cow<'static, str>Parent table name
name: Cow<'static, str>Constraint name
value: Cow<'static, str>Check expression
Implementations§
Source§impl CheckConstraint
impl CheckConstraint
Sourcepub fn to_constraint_sql(&self) -> String
pub fn to_constraint_sql(&self) -> String
Generate the CHECK constraint clause
Trait Implementations§
Source§impl Clone for CheckConstraint
impl Clone for CheckConstraint
Source§fn clone(&self) -> CheckConstraint
fn clone(&self) -> CheckConstraint
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 CheckConstraint
impl Debug for CheckConstraint
Source§impl Default for CheckConstraint
impl Default for CheckConstraint
Source§impl From<CheckConstraintDef> for CheckConstraint
impl From<CheckConstraintDef> for CheckConstraint
Source§fn from(def: CheckConstraintDef) -> Self
fn from(def: CheckConstraintDef) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CheckConstraint
impl PartialEq for CheckConstraint
impl Eq for CheckConstraint
impl StructuralPartialEq for CheckConstraint
Auto Trait Implementations§
impl Freeze for CheckConstraint
impl RefUnwindSafe for CheckConstraint
impl Send for CheckConstraint
impl Sync for CheckConstraint
impl Unpin for CheckConstraint
impl UnwindSafe for CheckConstraint
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