pub struct CheckMeta {
pub name: Cow<'static, str>,
pub expression: Cow<'static, str>,
}Expand description
A table-level CHECK constraint.
Fields§
§name: Cow<'static, str>Constraint name (required by PostgreSQL/MySQL for later dropping).
expression: Cow<'static, str>SQL boolean expression, e.g. amount > 0.
Trait Implementations§
impl Eq for CheckMeta
impl StructuralPartialEq for CheckMeta
Auto Trait Implementations§
impl Forget for CheckMeta
impl Freeze for CheckMeta
impl Move for CheckMeta
impl RefUnwindSafe for CheckMeta
impl Send for CheckMeta
impl Sync for CheckMeta
impl Unpin for CheckMeta
impl UnsafeUnpin for CheckMeta
impl UnwindSafe for CheckMeta
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