(&self)
| 25 | |
| 26 | impl NodeType { |
| 27 | pub fn as_str(&self) -> &'static str { |
| 28 | match self { |
| 29 | NodeType::Intent => "Intent", |
| 30 | NodeType::AcceptanceCriterion => "AcceptanceCriterion", |
| 31 | NodeType::Task => "Task", |
| 32 | NodeType::ScopeItem => "ScopeItem", |
| 33 | NodeType::Constraint => "Constraint", |
| 34 | NodeType::Ref => "Ref", |
| 35 | NodeType::Memory => "Memory", |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | /// Intent status value set (mirrors the doc's `IntentShape` `sh:in`). |
no outgoing calls