pub enum GraphNativeConstraintCapability {
Unsupported,
NativeIndex,
NativeConstraint,
}Expand description
Backend-native DDL support for a portable graph constraint.
This is intentionally separate from GraphConstraintCapability.
A backend may validate a constraint before writes without having native DDL,
or it may create a query index that helps lookups but does not enforce the
constraint. Callers that need database-enforced guarantees should require
GraphNativeConstraintCapability::NativeConstraint and use
GraphStore::apply_native_constraint explicitly.
Variants§
Unsupported
The backend has no native DDL mapping for this constraint.
NativeIndex
The backend can create a native index that may improve related lookups but does not enforce the constraint.
NativeConstraint
The backend can create a native constraint or equivalent database object that enforces the portable constraint.
Trait Implementations§
Source§impl Clone for GraphNativeConstraintCapability
impl Clone for GraphNativeConstraintCapability
Source§fn clone(&self) -> GraphNativeConstraintCapability
fn clone(&self) -> GraphNativeConstraintCapability
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 moreimpl Copy for GraphNativeConstraintCapability
Source§impl Default for GraphNativeConstraintCapability
impl Default for GraphNativeConstraintCapability
Source§fn default() -> GraphNativeConstraintCapability
fn default() -> GraphNativeConstraintCapability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphNativeConstraintCapability
impl<'de> Deserialize<'de> for GraphNativeConstraintCapability
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
impl Eq for GraphNativeConstraintCapability
Source§impl PartialEq for GraphNativeConstraintCapability
impl PartialEq for GraphNativeConstraintCapability
Source§fn eq(&self, other: &GraphNativeConstraintCapability) -> bool
fn eq(&self, other: &GraphNativeConstraintCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GraphNativeConstraintCapability
Auto Trait Implementations§
impl Freeze for GraphNativeConstraintCapability
impl RefUnwindSafe for GraphNativeConstraintCapability
impl Send for GraphNativeConstraintCapability
impl Sync for GraphNativeConstraintCapability
impl Unpin for GraphNativeConstraintCapability
impl UnsafeUnpin for GraphNativeConstraintCapability
impl UnwindSafe for GraphNativeConstraintCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.