pub struct ExcludeConstraint {
pub name: Option<Ident>,
pub index_method: Option<Ident>,
pub elements: Vec<ExcludeConstraintElement>,
pub include: Vec<Ident>,
pub where_clause: Option<Box<Expr>>,
pub characteristics: Option<ConstraintCharacteristics>,
}Expand description
An EXCLUDE constraint.
Fields§
§name: Option<Ident>Optional constraint name.
index_method: Option<Ident>Optional index method (e.g. gist, spgist).
elements: Vec<ExcludeConstraintElement>The list of index expressions with their exclusion operators.
include: Vec<Ident>Optional list of additional columns to include in the index.
where_clause: Option<Box<Expr>>Optional WHERE predicate to restrict the constraint to a subset of rows.
characteristics: Option<ConstraintCharacteristics>Optional constraint characteristics like DEFERRABLE.
Trait Implementations§
Source§impl Clone for ExcludeConstraint
impl Clone for ExcludeConstraint
Source§fn clone(&self) -> ExcludeConstraint
fn clone(&self) -> ExcludeConstraint
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 ExcludeConstraint
impl Debug for ExcludeConstraint
Source§impl Display for ExcludeConstraint
impl Display for ExcludeConstraint
impl Eq for ExcludeConstraint
Source§impl From<ExcludeConstraint> for TableConstraint
impl From<ExcludeConstraint> for TableConstraint
Source§fn from(constraint: ExcludeConstraint) -> Self
fn from(constraint: ExcludeConstraint) -> Self
Converts to this type from the input type.
Source§impl Hash for ExcludeConstraint
impl Hash for ExcludeConstraint
Source§impl Ord for ExcludeConstraint
impl Ord for ExcludeConstraint
Source§fn cmp(&self, other: &ExcludeConstraint) -> Ordering
fn cmp(&self, other: &ExcludeConstraint) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExcludeConstraint
impl PartialEq for ExcludeConstraint
Source§impl PartialOrd for ExcludeConstraint
impl PartialOrd for ExcludeConstraint
Source§impl Spanned for ExcludeConstraint
impl Spanned for ExcludeConstraint
impl StructuralPartialEq for ExcludeConstraint
Auto Trait Implementations§
impl Freeze for ExcludeConstraint
impl RefUnwindSafe for ExcludeConstraint
impl Send for ExcludeConstraint
impl Sync for ExcludeConstraint
impl Unpin for ExcludeConstraint
impl UnsafeUnpin for ExcludeConstraint
impl UnwindSafe for ExcludeConstraint
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