pub enum ConstraintKindFilter {
Unique,
Key,
PropertyType,
Existence,
PropertyExistence,
}Expand description
The constraint-kind half of a SHOW <type filter> CONSTRAINTS filter.
None (on ConstraintTypeFilter::kind) means every kind (bare SHOW CONSTRAINTS/SHOW ALL CONSTRAINTS/SHOW NODE CONSTRAINTS).
Variants§
Unique
UNIQUE/UNIQUENESS, optionally PROPERTY-prefixed (CIP-74) –
matches constraint_type == "unique".
Key
KEY – matches constraint_type == "key". Never combines with
PROPERTY (CIP-74 SD[12]/SD[13]).
PropertyType
TYPE, optionally PROPERTY-prefixed – matches constraint_type == "propertyType" (CIP-85/CIP-100).
Existence
EXIST/EXISTENCE – property existence plus the four
label/endpoint-label kinds (CIP-187’s filtering table: a bare
EXIST[ENCE]/NODE EXIST[ENCE] matches NODE_LABEL_EXISTENCE
too).
PropertyExistence
PROPERTY EXIST[ENCE] (CIP-187) – property existence only
(constraint_type == "exists"), never the label/endpoint-label
kinds the bare Self::Existence also admits. Its own variant —
the grammar distinguishes the two spellings at parse time, so the
AST carries the distinction typed, never as a side-channel bool
beside the kind.
Trait Implementations§
Source§impl Clone for ConstraintKindFilter
impl Clone for ConstraintKindFilter
impl Copy for ConstraintKindFilter
Source§impl Debug for ConstraintKindFilter
impl Debug for ConstraintKindFilter
impl Eq for ConstraintKindFilter
Source§impl PartialEq for ConstraintKindFilter
impl PartialEq for ConstraintKindFilter
impl StructuralPartialEq for ConstraintKindFilter
Auto Trait Implementations§
impl Forget for ConstraintKindFilter
impl Freeze for ConstraintKindFilter
impl Move for ConstraintKindFilter
impl RefUnwindSafe for ConstraintKindFilter
impl Send for ConstraintKindFilter
impl Sync for ConstraintKindFilter
impl Unpin for ConstraintKindFilter
impl UnsafeUnpin for ConstraintKindFilter
impl UnwindSafe for ConstraintKindFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.