pub struct CatalogConstraintValidator { /* private fields */ }Expand description
Validates schema constraints during mutation operations using the Catalog.
Checks type definitions, NOT NULL constraints, and UNIQUE constraints against registered node/edge type definitions.
Implementations§
Trait Implementations§
Source§impl ConstraintValidator for CatalogConstraintValidator
impl ConstraintValidator for CatalogConstraintValidator
Source§fn validate_node_property(
&self,
labels: &[String],
key: &str,
value: &Value,
) -> Result<(), OperatorError>
fn validate_node_property( &self, labels: &[String], key: &str, value: &Value, ) -> Result<(), OperatorError>
Validates a single property value for a node with the given labels. Read more
Source§fn validate_node_complete(
&self,
labels: &[String],
properties: &[(String, Value)],
) -> Result<(), OperatorError>
fn validate_node_complete( &self, labels: &[String], properties: &[(String, Value)], ) -> Result<(), OperatorError>
Validates that all required properties are present after creating a node. Read more
Source§fn check_unique_node_property(
&self,
labels: &[String],
key: &str,
value: &Value,
) -> Result<(), OperatorError>
fn check_unique_node_property( &self, labels: &[String], key: &str, value: &Value, ) -> Result<(), OperatorError>
Checks UNIQUE constraint for a node property value. Read more
Source§fn validate_edge_property(
&self,
edge_type: &str,
key: &str,
value: &Value,
) -> Result<(), OperatorError>
fn validate_edge_property( &self, edge_type: &str, key: &str, value: &Value, ) -> Result<(), OperatorError>
Validates a single property value for an edge of the given type.
Source§fn validate_edge_complete(
&self,
edge_type: &str,
properties: &[(String, Value)],
) -> Result<(), OperatorError>
fn validate_edge_complete( &self, edge_type: &str, properties: &[(String, Value)], ) -> Result<(), OperatorError>
Validates that all required properties are present after creating an edge.
Auto Trait Implementations§
impl Freeze for CatalogConstraintValidator
impl !RefUnwindSafe for CatalogConstraintValidator
impl Send for CatalogConstraintValidator
impl Sync for CatalogConstraintValidator
impl Unpin for CatalogConstraintValidator
impl UnsafeUnpin for CatalogConstraintValidator
impl !UnwindSafe for CatalogConstraintValidator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more