MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / as_str

Method as_str

atomic-core/src/pristine/vault.rs:23–32  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

21
22impl 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()

Callers 15

get_ignore_templateFunction · 0.45
build_provenanceMethod · 0.45
parse_algorithmMethod · 0.45
runMethod · 0.45
build_commit_messageMethod · 0.45
get_imported_shasMethod · 0.45
runMethod · 0.45
write_commitMethod · 0.45
from_strMethod · 0.45
runMethod · 0.45
parse_identity_typeFunction · 0.45
executeMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_diff_stats_iterFunction · 0.36