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<'de> Deserialize<'de> for ExcludeConstraint
impl<'de> Deserialize<'de> for ExcludeConstraint
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
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
Source§impl PartialEq for ExcludeConstraint
impl PartialEq for ExcludeConstraint
Source§fn eq(&self, other: &ExcludeConstraint) -> bool
fn eq(&self, other: &ExcludeConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ExcludeConstraint
impl PartialOrd for ExcludeConstraint
Source§impl Serialize for ExcludeConstraint
impl Serialize for ExcludeConstraint
Source§impl Spanned for ExcludeConstraint
impl Spanned for ExcludeConstraint
impl StructuralPartialEq for ExcludeConstraint
Source§impl Visit for ExcludeConstraint
impl Visit for ExcludeConstraint
Source§impl VisitMut for ExcludeConstraint
impl VisitMut for ExcludeConstraint
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreAuto 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