pub struct EmptySchema;Expand description
A SchemaProvider that reports nothing. Useful for schema-free mode
and for unit tests that do not want to construct a full schema.
Trait Implementations§
Source§impl Debug for EmptySchema
impl Debug for EmptySchema
Source§impl Default for EmptySchema
impl Default for EmptySchema
Source§fn default() -> EmptySchema
fn default() -> EmptySchema
Returns the “default value” for a type. Read more
Source§impl SchemaProvider for EmptySchema
impl SchemaProvider for EmptySchema
Source§fn labels(&self) -> Vec<SmolStr>
fn labels(&self) -> Vec<SmolStr>
All declared labels. Order is not semantic; callers sort if they
need deterministic output.
Source§fn relationship_types(&self) -> Vec<SmolStr>
fn relationship_types(&self) -> Vec<SmolStr>
All declared relationship types.
Source§fn node_properties(&self, _: &str) -> Option<Vec<PropertyDecl>>
fn node_properties(&self, _: &str) -> Option<Vec<PropertyDecl>>
Properties declared on a node with this label. Read more
Source§fn relationship_properties(&self, _: &str) -> Option<Vec<PropertyDecl>>
fn relationship_properties(&self, _: &str) -> Option<Vec<PropertyDecl>>
Properties declared on a relationship of this type.
Source§fn relationship_endpoints(&self, _: &str) -> Vec<EndpointDecl>
fn relationship_endpoints(&self, _: &str) -> Vec<EndpointDecl>
Declared endpoint pairs for a relationship type. Empty = endpoint-
polymorphic; the semantic pass then skips endpoint checks.
Source§fn inverse_of(&self, _: &str) -> Option<SmolStr>
fn inverse_of(&self, _: &str) -> Option<SmolStr>
Declared inverse relationship type, if any. Consumers that model
typed inverses return them here; others return
None.Source§fn function(&self, _: &str) -> Option<FunctionSignature>
fn function(&self, _: &str) -> Option<FunctionSignature>
Look up a function signature. Used by typecheck and by completion.
Source§fn procedure(&self, _: &str) -> Option<ProcedureSignature>
fn procedure(&self, _: &str) -> Option<ProcedureSignature>
Look up a procedure signature for
CALL <proc>.Source§fn schema_digest(&self) -> [u8; 32]
fn schema_digest(&self) -> [u8; 32]
A content-addressed digest of the schema’s observable surface.
MUST change whenever any declaration visible through this trait
changes.
Source§fn has_label(&self, name: &str) -> bool
fn has_label(&self, name: &str) -> bool
Convenience predicate: does the schema declare
name as a label?Source§fn has_relationship_type(&self, name: &str) -> bool
fn has_relationship_type(&self, name: &str) -> bool
Convenience predicate: does the schema declare
name as a
relationship type?Auto Trait Implementations§
impl Freeze for EmptySchema
impl RefUnwindSafe for EmptySchema
impl Send for EmptySchema
impl Sync for EmptySchema
impl Unpin for EmptySchema
impl UnsafeUnpin for EmptySchema
impl UnwindSafe for EmptySchema
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more