pub enum UserTurnKind<'a> {
HumanPrompt(&'a str),
SlashCommand {
name: &'a str,
args: &'a str,
},
HarnessNotification,
}Expand description
Classification of a user event’s content for a restore digest.
Variants§
HumanPrompt(&'a str)
Genuine human-authored prompt text, or a system-generated notice of a real user action (e.g. an interruption marker).
SlashCommand
A slash-command invocation, e.g. /model with argument
claude-fable-5, or /compact with no arguments. A real user
action, but not free text — the caller decides how to render it
(e.g. "/model claude-fable-5").
Fields
HarnessNotification
A harness-generated notice with no human-authored content: a
non-external/tool-result turn, an isMeta or isCompactSummary
turn, a task-notification or peer/cross-session message, or a
local-command echo.
Trait Implementations§
Source§impl<'a> Clone for UserTurnKind<'a>
impl<'a> Clone for UserTurnKind<'a>
impl<'a> Copy for UserTurnKind<'a>
Source§impl<'a> Debug for UserTurnKind<'a>
impl<'a> Debug for UserTurnKind<'a>
impl<'a> Eq for UserTurnKind<'a>
Source§impl<'a> PartialEq for UserTurnKind<'a>
impl<'a> PartialEq for UserTurnKind<'a>
impl<'a> StructuralPartialEq for UserTurnKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserTurnKind<'a>
impl<'a> RefUnwindSafe for UserTurnKind<'a>
impl<'a> Send for UserTurnKind<'a>
impl<'a> Sync for UserTurnKind<'a>
impl<'a> Unpin for UserTurnKind<'a>
impl<'a> UnsafeUnpin for UserTurnKind<'a>
impl<'a> UnwindSafe for UserTurnKind<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more