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 (the scaffolding form,
CREATE GRAPH TYPE <name> AS { <body> }, vs. CIP-178’s plain
CREATE GRAPH TYPE <name> { <body> }). The worked
example (()-[:REL =>]->(), no properties, both endpoints the any
type) is 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 the
ineffectual-type rejection and
the one-index-backing-per-subject clash (both shapes the canonicalizer’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