(&self)
| 52 | |
| 53 | impl VaultEntryType { |
| 54 | pub fn as_str(&self) -> &'static str { |
| 55 | match self { |
| 56 | Self::Session => "session", |
| 57 | Self::ToolResult => "tool_result", |
| 58 | Self::Memory => "memory", |
| 59 | Self::Intent => "intent", |
| 60 | Self::Skill => "skill", |
| 61 | Self::Scratch => "scratch", |
| 62 | Self::Attestation => "attestation", |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | pub fn parse(s: &str) -> Option<Self> { |
| 67 | s.parse().ok() |
no outgoing calls