pub enum StoredConstraintKind {
Unique,
Existence,
NodeKey,
RelationshipKey,
PropertyType(StoredPropertyType),
}Variants§
Implementations§
Source§impl StoredConstraintKind
impl StoredConstraintKind
pub fn type_tag(&self, entity: StoredIndexEntity) -> &'static str
Sourcepub fn requires_backing_index(&self) -> bool
pub fn requires_backing_index(&self) -> bool
True for constraints that need a backing range index. Used by the store layer to decide whether to register/drop one alongside the catalog entry.
Sourcepub fn requires_existence(&self) -> bool
pub fn requires_existence(&self) -> bool
True for constraints that require every covered property to be present (existence semantics). Property uniqueness alone does NOT require all properties to exist.
Sourcepub fn requires_uniqueness(&self) -> bool
pub fn requires_uniqueness(&self) -> bool
True for constraints that enforce uniqueness across the full property tuple.
Trait Implementations§
Source§impl Clone for StoredConstraintKind
impl Clone for StoredConstraintKind
Source§fn clone(&self) -> StoredConstraintKind
fn clone(&self) -> StoredConstraintKind
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 StoredConstraintKind
impl Debug for StoredConstraintKind
Source§impl<'de> Deserialize<'de> for StoredConstraintKind
impl<'de> Deserialize<'de> for StoredConstraintKind
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 PartialEq for StoredConstraintKind
impl PartialEq for StoredConstraintKind
Source§fn eq(&self, other: &StoredConstraintKind) -> bool
fn eq(&self, other: &StoredConstraintKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StoredConstraintKind
impl Serialize for StoredConstraintKind
impl StructuralPartialEq for StoredConstraintKind
Auto Trait Implementations§
impl Freeze for StoredConstraintKind
impl RefUnwindSafe for StoredConstraintKind
impl Send for StoredConstraintKind
impl Sync for StoredConstraintKind
impl Unpin for StoredConstraintKind
impl UnsafeUnpin for StoredConstraintKind
impl UnwindSafe for StoredConstraintKind
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