pub enum EntityKind {
Node,
Relationship,
}Expand description
Node-vs-relationship entity kind: the typed form of the catalog’s
relationship: bool flag and of the "NODE"/"RELATIONSHIP"
entityType string (Constraint::entity_type, the SHOW INDEXES /
SHOW CONSTRAINTS entityType column, CIP-11).
Variants§
Implementations§
Source§impl EntityKind
impl EntityKind
Sourcepub fn from_relationship_flag(relationship: bool) -> Self
pub fn from_relationship_flag(relationship: bool) -> Self
The kind for a catalog relationship flag (false → node).
Sourcepub fn is_relationship(&self) -> bool
pub fn is_relationship(&self) -> bool
The catalog relationship flag for this kind — the inverse of
EntityKind::from_relationship_flag.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
The entityType display name ("NODE" / "RELATIONSHIP").
Sourcepub fn from_display_name(name: &str) -> Option<Self>
pub fn from_display_name(name: &str) -> Option<Self>
Parse an entityType display name back into the kind — the inverse
of EntityKind::display_name. Unknown names are rejected.
Source§impl EntityKind
impl EntityKind
Sourcepub fn parse(name: &str, entity_type: &str) -> Result<EntityKind, String>
pub fn parse(name: &str, entity_type: &str) -> Result<EntityKind, String>
Classify a stored entity_type for the named record, with the one
unknown-kind message. The row-agnostic spelling
Constraint::entity_kind delegates to.
Sourcepub fn unknown_message(name: &str, entity_type: &str) -> String
pub fn unknown_message(name: &str, entity_type: &str) -> String
The one message for a stored entity_type naming neither kind.
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
impl Copy for EntityKind
Source§impl Debug for EntityKind
impl Debug for EntityKind
Source§impl Display for EntityKind
impl Display for EntityKind
impl Eq for EntityKind
Source§impl Hash for EntityKind
impl Hash for EntityKind
Source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Forget for EntityKind
impl Freeze for EntityKind
impl Move for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnsafeUnpin for EntityKind
impl UnwindSafe for EntityKind
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.