(s: &str)
| 72 | type Err = String; |
| 73 | |
| 74 | fn from_str(s: &str) -> Result<Self, Self::Err> { |
| 75 | match s { |
| 76 | "session" => Ok(Self::Session), |
| 77 | "tool_result" => Ok(Self::ToolResult), |
| 78 | "memory" => Ok(Self::Memory), |
| 79 | "intent" => Ok(Self::Intent), |
| 80 | "skill" => Ok(Self::Skill), |
| 81 | "scratch" => Ok(Self::Scratch), |
| 82 | "attestation" => Ok(Self::Attestation), |
| 83 | _ => Err(format!("unknown vault entry type: {s}")), |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | impl std::fmt::Display for VaultEntryType { |
nothing calls this directly
no outgoing calls
no test coverage detected