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

Method as_str

atomic-agent/src/event.rs:235–244  ·  view source on GitHub ↗

Returns the canonical string representation of this hook type.

(&self)

Source from the content-addressed store, hash-verified

233
234 /// Returns the canonical string representation of this hook type.
235 pub fn as_str(&self) -> &'static str {
236 match self {
237 HookType::SessionStart => "session_start",
238 HookType::SessionEnd => "session_end",
239 HookType::TurnStart => "turn_start",
240 HookType::TurnEnd => "turn_end",
241 HookType::PreToolUse => "pre_tool_use",
242 HookType::PostToolUse => "post_tool_use",
243 }
244 }
245}
246
247impl fmt::Display for HookType {

Callers 7

build_files_and_metadataFunction · 0.45
from_strMethod · 0.45
to_identityMethod · 0.45
test_store_listFunction · 0.45
parseMethod · 0.45
signer_namesMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_store_listFunction · 0.36