pub struct CreateConstraint {
pub name: ConstraintNameSpec,
pub if_not_exists: bool,
pub entity: IndexEntityKind,
pub variable: String,
pub label: String,
pub properties: Vec<String>,
pub kind: ConstraintKind,
pub span: Span,
}Fields§
§name: ConstraintNameSpec§if_not_exists: bool§entity: IndexEntityKind§variable: StringPattern variable in the FOR clause (n, r).
label: StringLabel / rel-type. Always present — constraints don’t accept the wildcard form that LOOKUP indexes do.
properties: Vec<String>§kind: ConstraintKind§span: SpanTrait Implementations§
Source§impl Clone for CreateConstraint
impl Clone for CreateConstraint
Source§fn clone(&self) -> CreateConstraint
fn clone(&self) -> CreateConstraint
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 moreAuto Trait Implementations§
impl Freeze for CreateConstraint
impl RefUnwindSafe for CreateConstraint
impl Send for CreateConstraint
impl Sync for CreateConstraint
impl Unpin for CreateConstraint
impl UnsafeUnpin for CreateConstraint
impl UnwindSafe for CreateConstraint
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