pub struct GraphTypeConstraintSpec {
pub name: Option<SmallName>,
pub target: GraphTypeElementRef,
pub is_edge: bool,
pub properties: Vec<SmallName>,
pub kind: GraphTypeConstraintVerb,
pub property_type: Option<TypeExpr>,
pub options: OptionsForm,
}Expand description
[CONSTRAINT [<name>]] FOR <node/edge type reference> REQUIRE <property name spec> <constraint verb> [OPTIONS <map>] (CIP-178
<constraint specification>) – also the target of a node/edge type
spec’s trailing inline REQUIRE ... list and a property’s own inline
IS KEY/IS UNIQUE (both rewritten to this same shape at parse time,
per Rules 10-12).
Fields§
§name: Option<SmallName>§target: GraphTypeElementRef§is_edge: boolTrue when target is an edge type reference (FOR ()-[...]->());
false for a node type reference (FOR (...)).
properties: Vec<SmallName>§kind: GraphTypeConstraintVerb§property_type: Option<TypeExpr>The parsed <value type> for a PropertyType-kind constraint,
None for every other kind.
options: OptionsFormThe OPTIONS tail: absent, a literal map, or a whole-map parameter
(CIP-116 CR[4]) resolved before the body is captured/persisted.
Trait Implementations§
Source§impl Clone for GraphTypeConstraintSpec
impl Clone for GraphTypeConstraintSpec
Source§impl Debug for GraphTypeConstraintSpec
impl Debug for GraphTypeConstraintSpec
Source§impl PartialEq for GraphTypeConstraintSpec
impl PartialEq for GraphTypeConstraintSpec
impl StructuralPartialEq for GraphTypeConstraintSpec
Auto Trait Implementations§
impl Forget for GraphTypeConstraintSpec
impl Freeze for GraphTypeConstraintSpec
impl Move for GraphTypeConstraintSpec
impl RefUnwindSafe for GraphTypeConstraintSpec
impl Send for GraphTypeConstraintSpec
impl Sync for GraphTypeConstraintSpec
impl Unpin for GraphTypeConstraintSpec
impl UnsafeUnpin for GraphTypeConstraintSpec
impl UnwindSafe for GraphTypeConstraintSpec
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