pub struct CheckContract {
pub name: Option<String>,
pub expr: String,
}Expand description
A declarative table-level CHECK. expr is an arbitrary SQL boolean fragment
(bounded, not a full statement); name is auto-derived when omitted. The
core reconciles it by a hash of this DECLARED spec — never by comparing to
Postgres’s normalized stored definition — so there is no rewrite-churn.
Fields§
§name: Option<String>§expr: StringTrait Implementations§
Source§impl Clone for CheckContract
impl Clone for CheckContract
Source§fn clone(&self) -> CheckContract
fn clone(&self) -> CheckContract
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 CheckContract
impl Debug for CheckContract
Source§impl<'de> Deserialize<'de> for CheckContract
impl<'de> Deserialize<'de> for CheckContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CheckContract
impl RefUnwindSafe for CheckContract
impl Send for CheckContract
impl Sync for CheckContract
impl Unpin for CheckContract
impl UnsafeUnpin for CheckContract
impl UnwindSafe for CheckContract
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