pub struct GraphTypePropertyType {
pub name: SmallName,
pub value_type: TypeExpr,
pub default_value: Option<Expr>,
pub inline_constraint: Option<GraphTypeInlineConstraint>,
}Expand description
One <property type>: a name, its declared value type, an optional
DEFAULT ON COMMIT <value expression> (CIP-262), and an optional
inline IS [NODE|REL|RELATIONSHIP] (KEY|UNIQUE) constraint (CIP-178
Rules 10-12 rewrite these into standalone GraphTypeConstraintSpecs
during registration).
The default value is parsed as a full expression here (grammar-only,
like the rest of the body): the CIP-262 shape restriction – a literal
or an allowed type constructor, never null – is enforced by the
graph-type semantic layer, and the construct itself sits behind the
ADR-0371 graph-type-default-values preview gate at statement
admission (the trio’s decision: ADR-0388). None is the no-default
case.
Fields§
§name: SmallName§value_type: TypeExpr§default_value: Option<Expr>§inline_constraint: Option<GraphTypeInlineConstraint>Trait Implementations§
Source§impl Clone for GraphTypePropertyType
impl Clone for GraphTypePropertyType
Source§impl Debug for GraphTypePropertyType
impl Debug for GraphTypePropertyType
Source§impl PartialEq for GraphTypePropertyType
impl PartialEq for GraphTypePropertyType
impl StructuralPartialEq for GraphTypePropertyType
Auto Trait Implementations§
impl Forget for GraphTypePropertyType
impl Freeze for GraphTypePropertyTypewhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const TypeExpr is !null: Freeze,
PhantomData<TypeExpr>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<MapPair>: Freeze,
PhantomData<InterpPart>: Freeze,
*const PropertyAccess is !null: Freeze,
PhantomData<PropertyAccess>: Freeze,
*const BinaryExpr is !null: Freeze,
PhantomData<BinaryExpr>: Freeze,
*const UnaryExpr is !null: Freeze,
PhantomData<UnaryExpr>: Freeze,
*const ComparisonExpr is !null: Freeze,
PhantomData<ComparisonExpr>: Freeze,
*const InExpr is !null: Freeze,
PhantomData<InExpr>: Freeze,
*const IsNullExpr is !null: Freeze,
PhantomData<IsNullExpr>: Freeze,
*const IsTypeExpr is !null: Freeze,
PhantomData<IsTypeExpr>: Freeze,
*const IsNormalizedExpr is !null: Freeze,
PhantomData<IsNormalizedExpr>: Freeze,
*const ChronologicalCompareExpr is !null: Freeze,
PhantomData<ChronologicalCompareExpr>: Freeze,
*const StringMatchExpr is !null: Freeze,
PhantomData<StringMatchExpr>: Freeze,
*const CaseExpr is !null: Freeze,
PhantomData<CaseExpr>: Freeze,
*const ExistsSubqueryExpr is !null: Freeze,
PhantomData<ExistsSubqueryExpr>: Freeze,
*const CountSubqueryExpr is !null: Freeze,
PhantomData<CountSubqueryExpr>: Freeze,
*const CollectSubqueryExpr is !null: Freeze,
PhantomData<CollectSubqueryExpr>: Freeze,
*const ListComprehensionExpr is !null: Freeze,
PhantomData<ListComprehensionExpr>: Freeze,
*const MapComprehensionExpr is !null: Freeze,
PhantomData<MapComprehensionExpr>: Freeze,
*const PatternComprehensionExpr is !null: Freeze,
PhantomData<PatternComprehensionExpr>: Freeze,
*const ReduceExpr is !null: Freeze,
PhantomData<ReduceExpr>: Freeze,
*const AllReduceExpr is !null: Freeze,
PhantomData<AllReduceExpr>: Freeze,
*const ShortestPathExpr is !null: Freeze,
PhantomData<ShortestPathExpr>: Freeze,
*const SubscriptExpr is !null: Freeze,
PhantomData<SubscriptExpr>: Freeze,
*const QuantifierExpr is !null: Freeze,
PhantomData<QuantifierExpr>: Freeze,
*const HasLabelExpr is !null: Freeze,
PhantomData<HasLabelExpr>: Freeze,
*const Expr is !null: Freeze,
*const PatternPredicateExpr is !null: Freeze,
PhantomData<PatternPredicateExpr>: Freeze,
*const MapProjectionExpr is !null: Freeze,
PhantomData<MapProjectionExpr>: Freeze,
impl Move for GraphTypePropertyType
impl RefUnwindSafe for GraphTypePropertyType
impl Send for GraphTypePropertyTypewhere
Arc<str>: Send,
BoxRaw<TypeExpr>: Send,
RawVecInner: Send,
BoxRaw<Expr>: Send,
BoxRaw<PropertyAccess>: Send,
BoxRaw<BinaryExpr>: Send,
BoxRaw<UnaryExpr>: Send,
BoxRaw<ComparisonExpr>: Send,
BoxRaw<InExpr>: Send,
BoxRaw<IsNullExpr>: Send,
BoxRaw<IsTypeExpr>: Send,
BoxRaw<IsNormalizedExpr>: Send,
BoxRaw<ChronologicalCompareExpr>: Send,
BoxRaw<StringMatchExpr>: Send,
BoxRaw<CaseExpr>: Send,
BoxRaw<ExistsSubqueryExpr>: Send,
BoxRaw<CountSubqueryExpr>: Send,
BoxRaw<CollectSubqueryExpr>: Send,
BoxRaw<ListComprehensionExpr>: Send,
BoxRaw<MapComprehensionExpr>: Send,
BoxRaw<PatternComprehensionExpr>: Send,
BoxRaw<ReduceExpr>: Send,
BoxRaw<AllReduceExpr>: Send,
BoxRaw<ShortestPathExpr>: Send,
BoxRaw<SubscriptExpr>: Send,
BoxRaw<QuantifierExpr>: Send,
BoxRaw<HasLabelExpr>: Send,
BoxRaw<PatternPredicateExpr>: Send,
BoxRaw<MapProjectionExpr>: Send,
impl Sync for GraphTypePropertyTypewhere
Arc<str>: Sync,
BoxRaw<TypeExpr>: Sync,
RawVecInner: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<PropertyAccess>: Sync,
BoxRaw<BinaryExpr>: Sync,
BoxRaw<UnaryExpr>: Sync,
BoxRaw<ComparisonExpr>: Sync,
BoxRaw<InExpr>: Sync,
BoxRaw<IsNullExpr>: Sync,
BoxRaw<IsTypeExpr>: Sync,
BoxRaw<IsNormalizedExpr>: Sync,
BoxRaw<ChronologicalCompareExpr>: Sync,
BoxRaw<StringMatchExpr>: Sync,
BoxRaw<CaseExpr>: Sync,
BoxRaw<ExistsSubqueryExpr>: Sync,
BoxRaw<CountSubqueryExpr>: Sync,
BoxRaw<CollectSubqueryExpr>: Sync,
BoxRaw<ListComprehensionExpr>: Sync,
BoxRaw<MapComprehensionExpr>: Sync,
BoxRaw<PatternComprehensionExpr>: Sync,
BoxRaw<ReduceExpr>: Sync,
BoxRaw<AllReduceExpr>: Sync,
BoxRaw<ShortestPathExpr>: Sync,
BoxRaw<SubscriptExpr>: Sync,
BoxRaw<QuantifierExpr>: Sync,
BoxRaw<HasLabelExpr>: Sync,
BoxRaw<PatternPredicateExpr>: Sync,
BoxRaw<MapProjectionExpr>: Sync,
impl Unpin for GraphTypePropertyTypewhere
Arc<str>: Unpin,
Box<TypeExpr>: Unpin,
*const u8 is !null: Unpin,
Box<Expr>: Unpin,
Box<PropertyAccess>: Unpin,
Box<BinaryExpr>: Unpin,
Box<UnaryExpr>: Unpin,
Box<ComparisonExpr>: Unpin,
Box<InExpr>: Unpin,
Box<IsNullExpr>: Unpin,
Box<IsTypeExpr>: Unpin,
Box<IsNormalizedExpr>: Unpin,
Box<ChronologicalCompareExpr>: Unpin,
Box<StringMatchExpr>: Unpin,
Box<CaseExpr>: Unpin,
Box<ExistsSubqueryExpr>: Unpin,
Box<CountSubqueryExpr>: Unpin,
Box<CollectSubqueryExpr>: Unpin,
Box<ListComprehensionExpr>: Unpin,
Box<MapComprehensionExpr>: Unpin,
Box<PatternComprehensionExpr>: Unpin,
Box<ReduceExpr>: Unpin,
Box<AllReduceExpr>: Unpin,
Box<ShortestPathExpr>: Unpin,
Box<SubscriptExpr>: Unpin,
Box<QuantifierExpr>: Unpin,
Box<HasLabelExpr>: Unpin,
Box<PatternPredicateExpr>: Unpin,
Box<MapProjectionExpr>: Unpin,
impl UnsafeUnpin for GraphTypePropertyTypewhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const TypeExpr is !null: UnsafeUnpin,
PhantomData<TypeExpr>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<MapPair>: UnsafeUnpin,
PhantomData<InterpPart>: UnsafeUnpin,
*const PropertyAccess is !null: UnsafeUnpin,
PhantomData<PropertyAccess>: UnsafeUnpin,
*const BinaryExpr is !null: UnsafeUnpin,
PhantomData<BinaryExpr>: UnsafeUnpin,
*const UnaryExpr is !null: UnsafeUnpin,
PhantomData<UnaryExpr>: UnsafeUnpin,
*const ComparisonExpr is !null: UnsafeUnpin,
PhantomData<ComparisonExpr>: UnsafeUnpin,
*const InExpr is !null: UnsafeUnpin,
PhantomData<InExpr>: UnsafeUnpin,
*const IsNullExpr is !null: UnsafeUnpin,
PhantomData<IsNullExpr>: UnsafeUnpin,
*const IsTypeExpr is !null: UnsafeUnpin,
PhantomData<IsTypeExpr>: UnsafeUnpin,
*const IsNormalizedExpr is !null: UnsafeUnpin,
PhantomData<IsNormalizedExpr>: UnsafeUnpin,
*const ChronologicalCompareExpr is !null: UnsafeUnpin,
PhantomData<ChronologicalCompareExpr>: UnsafeUnpin,
*const StringMatchExpr is !null: UnsafeUnpin,
PhantomData<StringMatchExpr>: UnsafeUnpin,
*const CaseExpr is !null: UnsafeUnpin,
PhantomData<CaseExpr>: UnsafeUnpin,
*const ExistsSubqueryExpr is !null: UnsafeUnpin,
PhantomData<ExistsSubqueryExpr>: UnsafeUnpin,
*const CountSubqueryExpr is !null: UnsafeUnpin,
PhantomData<CountSubqueryExpr>: UnsafeUnpin,
*const CollectSubqueryExpr is !null: UnsafeUnpin,
PhantomData<CollectSubqueryExpr>: UnsafeUnpin,
*const ListComprehensionExpr is !null: UnsafeUnpin,
PhantomData<ListComprehensionExpr>: UnsafeUnpin,
*const MapComprehensionExpr is !null: UnsafeUnpin,
PhantomData<MapComprehensionExpr>: UnsafeUnpin,
*const PatternComprehensionExpr is !null: UnsafeUnpin,
PhantomData<PatternComprehensionExpr>: UnsafeUnpin,
*const ReduceExpr is !null: UnsafeUnpin,
PhantomData<ReduceExpr>: UnsafeUnpin,
*const AllReduceExpr is !null: UnsafeUnpin,
PhantomData<AllReduceExpr>: UnsafeUnpin,
*const ShortestPathExpr is !null: UnsafeUnpin,
PhantomData<ShortestPathExpr>: UnsafeUnpin,
*const SubscriptExpr is !null: UnsafeUnpin,
PhantomData<SubscriptExpr>: UnsafeUnpin,
*const QuantifierExpr is !null: UnsafeUnpin,
PhantomData<QuantifierExpr>: UnsafeUnpin,
*const HasLabelExpr is !null: UnsafeUnpin,
PhantomData<HasLabelExpr>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
*const PatternPredicateExpr is !null: UnsafeUnpin,
PhantomData<PatternPredicateExpr>: UnsafeUnpin,
*const MapProjectionExpr is !null: UnsafeUnpin,
PhantomData<MapProjectionExpr>: UnsafeUnpin,
impl UnwindSafe for GraphTypePropertyTypewhere
Arc<str>: UnwindSafe,
BoxRaw<TypeExpr>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<PropertyAccess>: UnwindSafe,
BoxRaw<BinaryExpr>: UnwindSafe,
BoxRaw<UnaryExpr>: UnwindSafe,
BoxRaw<ComparisonExpr>: UnwindSafe,
BoxRaw<InExpr>: UnwindSafe,
BoxRaw<IsNullExpr>: UnwindSafe,
BoxRaw<IsTypeExpr>: UnwindSafe,
BoxRaw<IsNormalizedExpr>: UnwindSafe,
BoxRaw<ChronologicalCompareExpr>: UnwindSafe,
BoxRaw<StringMatchExpr>: UnwindSafe,
BoxRaw<CaseExpr>: UnwindSafe,
BoxRaw<ExistsSubqueryExpr>: UnwindSafe,
BoxRaw<CountSubqueryExpr>: UnwindSafe,
BoxRaw<CollectSubqueryExpr>: UnwindSafe,
BoxRaw<ListComprehensionExpr>: UnwindSafe,
BoxRaw<MapComprehensionExpr>: UnwindSafe,
BoxRaw<PatternComprehensionExpr>: UnwindSafe,
BoxRaw<ReduceExpr>: UnwindSafe,
BoxRaw<AllReduceExpr>: UnwindSafe,
BoxRaw<ShortestPathExpr>: UnwindSafe,
BoxRaw<SubscriptExpr>: UnwindSafe,
BoxRaw<QuantifierExpr>: UnwindSafe,
BoxRaw<HasLabelExpr>: UnwindSafe,
BoxRaw<PatternPredicateExpr>: UnwindSafe,
BoxRaw<MapProjectionExpr>: UnwindSafe,
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