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

Method as_str

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

Source from the content-addressed store, hash-verified

52
53impl 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()

Callers 15

import_skeletonMethod · 0.45
import_graph_sliceMethod · 0.45
import_view_snapshotMethod · 0.45
check_schema_versionFunction · 0.45
fmtMethod · 0.45
from_jsonMethod · 0.45
pathMethod · 0.45
tokenize_for_ftsFunction · 0.45
merge_intoMethod · 0.45
verify_unchangedMethod · 0.45

Calls

no outgoing calls