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 GraphTypePropertyType
impl Move for GraphTypePropertyType
impl RefUnwindSafe for GraphTypePropertyType
impl Send for GraphTypePropertyType
impl Sync for GraphTypePropertyType
impl Unpin for GraphTypePropertyType
impl UnsafeUnpin for GraphTypePropertyType
impl UnwindSafe for GraphTypePropertyType
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