(&self, f: &mut fmt::Formatter<'_>)
| 32 | |
| 33 | impl 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 | |
| 55 | impl From<&str> for EntityType { |
nothing calls this directly
no outgoing calls
no test coverage detected