[−][src]Struct postgres_parser::sys::Constraint
Fields
type_: NodeTag
contype: ConstrType
conname: *mut c_char
Fields used for most/all constraint types:
deferrable: bool
Constraint name, or NULL if unnamed
initdeferred: bool
DEFERRABLE?
location: c_int
INITIALLY DEFERRED?
is_no_inherit: bool
Fields used for constraints with expressions (CHECK and DEFAULT):
raw_expr: *mut Node
is constraint noninheritable?
cooked_expr: *mut c_char
expr, as untransformed parse tree
generated_when: c_char
expr, as nodeToString representation
keys: *mut List
Fields used for unique constraints (UNIQUE and PRIMARY KEY):
including: *mut List
String nodes naming referenced key column(s)
exclusions: *mut List
Fields used for EXCLUSION constraints:
options: *mut List
Fields used for index constraints (UNIQUE, PRIMARY KEY, EXCLUSION):
indexname: *mut c_char
options from WITH clause
indexspace: *mut c_char
existing index to use; otherwise NULL
reset_default_tblspc: bool
index tablespace; NULL for default
access_method: *mut c_char
reset default_tablespace prior to creating the index */
where_clause: *mut Node
index access method; NULL for default
pktable: *mut RangeVar
Fields used for FOREIGN KEY constraints:
fk_attrs: *mut List
Primary key table
pk_attrs: *mut List
Attributes of foreign key
fk_matchtype: c_char
Corresponding attrs in PK table
fk_upd_action: c_char
FULL, PARTIAL, SIMPLE
fk_del_action: c_char
ON UPDATE action
old_conpfeqop: *mut List
ON DELETE action
old_pktable_oid: Oid
pg_constraint.conpfeqop of my former self
skip_validation: bool
Fields used for constraints that allow a NOT VALID specification
initially_valid: bool
skip validation of existing rows?
Trait Implementations
impl Debug for Constraint
[src]
impl Default for Constraint
[src]
impl Eq for Constraint
[src]
impl Hash for Constraint
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Constraint> for Constraint
[src]
fn eq(&self, other: &Constraint) -> bool
[src]
fn ne(&self, other: &Constraint) -> bool
[src]
impl StructuralEq for Constraint
[src]
impl StructuralPartialEq for Constraint
[src]
Auto Trait Implementations
impl RefUnwindSafe for Constraint
impl !Send for Constraint
impl !Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,