pub struct CreateGraphTypeClause {
pub name: SmallName,
pub body: GraphTypeBody,
pub via_as: bool,
}Expand description
See Clause::CreateGraphType.
Fields§
§name: SmallName§body: GraphTypeBody§via_as: boolWhether the AS spelling was used (CIP-180’s own scaffolding form,
CREATE GRAPH TYPE <name> AS { <body> }, vs. CIP-178’s plain
CREATE GRAPH TYPE <name> { <body> }). CIP-180’s own worked
example (()-[:REL =>]->(), no properties, both endpoints the any
type) violates CIP-178 Rule 9 (an ineffectual single-label edge
type) – the AS form exists to exercise the CIP-180 canonicalizer,
so the engine’s CreateGraphType handler exempts it from Rule 9 and
the one-index-backing-per-subject clash (both shapes CIP-180’s own
scenarios use), and validates every other body rule normally.
Trait Implementations§
Source§impl Clone for CreateGraphTypeClause
impl Clone for CreateGraphTypeClause
Source§impl Debug for CreateGraphTypeClause
impl Debug for CreateGraphTypeClause
Source§impl PartialEq for CreateGraphTypeClause
impl PartialEq for CreateGraphTypeClause
impl StructuralPartialEq for CreateGraphTypeClause
Auto Trait Implementations§
impl Forget for CreateGraphTypeClause
impl Freeze for CreateGraphTypeClause
impl Move for CreateGraphTypeClause
impl RefUnwindSafe for CreateGraphTypeClause
impl Send for CreateGraphTypeClause
impl Sync for CreateGraphTypeClause
impl Unpin for CreateGraphTypeClause
impl UnsafeUnpin for CreateGraphTypeClause
impl UnwindSafe for CreateGraphTypeClause
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