pub enum DynamicNameToken {
PropertyKey,
Label,
}Expand description
Which token namespace a dynamic name belongs to (the tokenType slot of
Neo4j’s 42I11 “invalid name” status description). Owns the whole
namespace vocabulary — the 42I11 token phrase, the 22N27/22NB1 operand
position and accepted type — so neither layer spells any of them.
Variants§
Implementations§
Source§impl DynamicNameToken
impl DynamicNameToken
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The authored token-type phrase for the 42I11 detail text.
Sourcepub const fn position(self) -> &'static str
pub const fn position(self) -> &'static str
The authored operand position for the 22N27/22NB1 detail text.
Sourcepub const fn expected(self) -> &'static str
pub const fn expected(self) -> &'static str
The authored accepted type for the 22N27/22NB1 detail text.
Sourcepub fn accepts_type(self, type_name: &str) -> bool
pub fn accepts_type(self, type_name: &str) -> bool
The type half of Self::check, against a statically known
operand’s Cypher type class (STRING, LIST, … — a bare class, never
a parameterized list type): a property key takes a STRING; a
dynamic label/type a STRING or a LIST, whose elements the per-row
rule then checks. Content (a string’s text, a list’s elements) is the
other half, decided by Self::check per value.
Sourcepub fn check(self, value: &Value) -> Result<(), DynamicAccessError>
pub fn check(self, value: &Value) -> Result<(), DynamicAccessError>
The dynamic-operand rule for this namespace: a property key is one
non-empty, NUL-free STRING; a label/type operand is a STRING or
a LIST<STRING> of such names. Validation-only callers (the front’s
compile-time fold) use this token-keyed entry; callers that need the
resolved name(s) call dynamic_property_key /
dynamic_label_names directly.
Trait Implementations§
Source§impl Clone for DynamicNameToken
impl Clone for DynamicNameToken
impl Copy for DynamicNameToken
Source§impl Debug for DynamicNameToken
impl Debug for DynamicNameToken
impl Eq for DynamicNameToken
Source§impl PartialEq for DynamicNameToken
impl PartialEq for DynamicNameToken
impl StructuralPartialEq for DynamicNameToken
Auto Trait Implementations§
impl Forget for DynamicNameToken
impl Freeze for DynamicNameToken
impl Move for DynamicNameToken
impl RefUnwindSafe for DynamicNameToken
impl Send for DynamicNameToken
impl Sync for DynamicNameToken
impl Unpin for DynamicNameToken
impl UnsafeUnpin for DynamicNameToken
impl UnwindSafe for DynamicNameToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.