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

Method as_str

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

Returns the canonical string representation of this hook type.

(&self)

Source from the content-addressed store, hash-verified

225
226 /// Returns the canonical string representation of this hook type.
227 pub fn as_str(&self) -> &'static str {
228 match self {
229 HookType::SessionStart => "session_start",
230 HookType::SessionEnd => "session_end",
231 HookType::TurnStart => "turn_start",
232 HookType::TurnEnd => "turn_end",
233 HookType::PreToolUse => "pre_tool_use",
234 HookType::PostToolUse => "post_tool_use",
235 }
236 }
237}
238
239impl 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