pub struct Constraint {
pub contype: ConstrType,
pub location: i32,
pub raw_expr: Option<Value>,
pub keys: Option<Value>,
pub indexname: Option<String>,
pub skip_validation: bool,
pub initially_valid: bool,
}
Fields§
§contype: ConstrType
§location: i32
token location, or -1 if unknown
raw_expr: Option<Value>
expr, as untransformed parse tree
keys: Option<Value>
String nodes naming referenced column(s)
indexname: Option<String>
existing index to use; otherwise NULL
skip_validation: bool
skip validation of existing rows?
initially_valid: bool
mark the new constraint as valid?
Trait Implementations§
Source§impl Debug for Constraint
impl Debug for Constraint
Source§impl<'de> Deserialize<'de> for Constraint
impl<'de> Deserialize<'de> for Constraint
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 Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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