(&self)
| 21 | |
| 22 | impl VaultEntryType { |
| 23 | pub fn as_str(&self) -> &'static str { |
| 24 | match self { |
| 25 | Self::Session => "session", |
| 26 | Self::ToolResult => "tool_result", |
| 27 | Self::Memory => "memory", |
| 28 | Self::Intent => "intent", |
| 29 | Self::Skill => "skill", |
| 30 | Self::Scratch => "scratch", |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | pub fn parse(s: &str) -> Option<Self> { |
| 35 | s.parse().ok() |
no outgoing calls