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

Method as_str

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

Source from the content-addressed store, hash-verified

27
28impl 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()

Callers 15

fmtMethod · 0.45
tokenize_for_ftsFunction · 0.45
kg_fts_searchMethod · 0.45
kg_fts_match_idsMethod · 0.45
get_embeddingMethod · 0.45
list_embeddingsMethod · 0.45
get_tagMethod · 0.45
list_tagsMethod · 0.45
get_tagMethod · 0.45
list_tagsMethod · 0.45
put_tagMethod · 0.45

Calls

no outgoing calls