pub struct Constraint {Show 35 fields
pub contype: ConstrType,
pub conname: Option<Str>,
pub deferrable: bool,
pub initdeferred: bool,
pub is_enforced: bool,
pub skip_validation: bool,
pub initially_valid: bool,
pub is_no_inherit: bool,
pub raw_expr: Option<Node>,
pub cooked_expr: Option<Str>,
pub generated_when: u8,
pub generated_kind: u8,
pub nulls_not_distinct: bool,
pub keys: List,
pub without_overlaps: bool,
pub including: List,
pub exclusions: List,
pub options: List,
pub indexname: Option<Str>,
pub indexspace: Option<Str>,
pub reset_default_tblspc: bool,
pub access_method: Option<Str>,
pub where_clause: Option<Node>,
pub pktable: Option<Box<RangeVar>>,
pub fk_attrs: List,
pub pk_attrs: List,
pub fk_with_period: bool,
pub pk_with_period: bool,
pub fk_matchtype: u8,
pub fk_upd_action: u8,
pub fk_del_action: u8,
pub fk_del_set_cols: List,
pub old_conpfeqop: List,
pub old_pktable_oid: u32,
pub location: i32,
}Expand description
The node Constraint.
Fields§
§contype: ConstrType§conname: Option<Str>§deferrable: bool§initdeferred: bool§is_enforced: bool§skip_validation: bool§initially_valid: bool§is_no_inherit: bool§raw_expr: Option<Node>§cooked_expr: Option<Str>§generated_when: u8§generated_kind: u8§nulls_not_distinct: bool§keys: List§without_overlaps: bool§including: List§exclusions: List§options: List§indexname: Option<Str>§indexspace: Option<Str>§reset_default_tblspc: bool§access_method: Option<Str>§where_clause: Option<Node>§pktable: Option<Box<RangeVar>>§fk_attrs: List§pk_attrs: List§fk_with_period: bool§pk_with_period: bool§fk_matchtype: u8§fk_upd_action: u8§fk_del_action: u8§fk_del_set_cols: List§old_conpfeqop: List§old_pktable_oid: u32§location: i32Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§impl Debug for Constraint
impl Debug for Constraint
Source§impl Default for Constraint
impl Default for Constraint
Source§impl Equal for Constraint
impl Equal for Constraint
Source§impl From<Constraint> for Node
impl From<Constraint> for Node
Source§fn from(node: Constraint) -> Node
fn from(node: Constraint) -> Node
Converts to this type from the input type.
Source§impl NodeType for Constraint
impl NodeType for Constraint
Source§impl Out for Constraint
impl Out for Constraint
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnsafeUnpin 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