MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / as_str

Method as_str

crates/opencode-core/src/id.rs:21–32  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

19
20impl Prefix {
21 fn as_str(&self) -> &'static str {
22 match self {
23 Prefix::Session => "ses",
24 Prefix::Message => "msg",
25 Prefix::Permission => "per",
26 Prefix::Question => "que",
27 Prefix::User => "usr",
28 Prefix::Part => "prt",
29 Prefix::Pty => "pty",
30 Prefix::Tool => "tool",
31 }
32 }
33}
34
35static LAST_TIMESTAMP: AtomicU64 = AtomicU64::new(0);

Calls

no outgoing calls