(&self)
| 27 | |
| 28 | impl VaultEntryType { |
| 29 | pub fn as_str(&self) -> &'static str { |
| 30 | match self { |
| 31 | Self::Session => "session", |
| 32 | Self::ToolResult => "tool_result", |
| 33 | Self::Memory => "memory", |
| 34 | Self::Intent => "intent", |
| 35 | Self::Skill => "skill", |
| 36 | Self::Scratch => "scratch", |
| 37 | Self::Attestation => "attestation", |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | pub fn parse(s: &str) -> Option<Self> { |
| 42 | s.parse().ok() |
no outgoing calls