MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / fmt

Method fmt

graphlite/src/catalog/operations.rs:34–52  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

32
33impl fmt::Display for EntityType {
34 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
35 let s = match self {
36 EntityType::Schema => "schema",
37 EntityType::Graph => "graph",
38 EntityType::GraphType => "graph_type",
39 EntityType::VertexType => "vertex_type",
40 EntityType::EdgeType => "edge_type",
41 EntityType::Index => "index",
42 EntityType::User => "user",
43 EntityType::Role => "role",
44 EntityType::Ace => "ace",
45 EntityType::Collection => "collection",
46 EntityType::Metric => "metric",
47 EntityType::DefaultSchema => "default_schema",
48 EntityType::Store => "store",
49 EntityType::Procedure => "procedure",
50 };
51 write!(f, "{}", s)
52 }
53}
54
55impl From<&str> for EntityType {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected