pub struct CreateConstraintClause {
pub name: Option<SchemaName>,
pub entity_type: SchemaEntityType,
pub label: SmallName,
pub variable: SmallName,
pub properties: Vec<SmallName>,
pub constraint_type: String,
pub if_not_exists: bool,
pub property_type: Option<TypeExpr>,
pub options: OptionsForm,
pub enforced_label: Option<SmallName>,
}Expand description
CREATE CONSTRAINT clause.
Fields§
§name: Option<SchemaName>§entity_type: SchemaEntityType§label: SmallName§variable: SmallName§properties: Vec<SmallName>§constraint_type: String§if_not_exists: bool§property_type: Option<TypeExpr>The parsed <value type> for a REQUIRE (n.prop) IS :: <type> /
IS TYPED <type> property type constraint (CIP-85), None for
every other constraint_type.
options: OptionsFormThe OPTIONS tail: absent, a literal map, or a whole-map parameter
(CIP-116 CR[4]) resolved at execution time.
enforced_label: Option<SmallName>The target label for a CIP-177 REQUIRE <alias>:<Label> label
existence constraint (constraint_type one of "labelExistence"/
"sourceLabelExistence"/"targetLabelExistence"), None for
every other constraint_type.
Trait Implementations§
Source§impl Clone for CreateConstraintClause
impl Clone for CreateConstraintClause
Source§impl Debug for CreateConstraintClause
impl Debug for CreateConstraintClause
Source§impl PartialEq for CreateConstraintClause
impl PartialEq for CreateConstraintClause
impl StructuralPartialEq for CreateConstraintClause
Auto Trait Implementations§
impl Forget for CreateConstraintClause
impl Freeze for CreateConstraintClause
impl Move for CreateConstraintClause
impl RefUnwindSafe for CreateConstraintClause
impl Send for CreateConstraintClause
impl Sync for CreateConstraintClause
impl Unpin for CreateConstraintClause
impl UnsafeUnpin for CreateConstraintClause
impl UnwindSafe for CreateConstraintClause
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