pub struct PromptHistoryEntry {
pub display: Option<String>,
pub timestamp_ms: Option<u64>,
pub project: Option<String>,
pub session_id: Option<String>,
pub rest: Map<String, Value>,
}Expand description
One record from the global prompt history file
(~/.claude/history.jsonl): a prompt the user typed, in any
project. See HistoryRoot::prompt_history.
Fields§
§display: Option<String>The prompt text as displayed.
timestamp_ms: Option<u64>Epoch milliseconds when the prompt was submitted. Note this file uses numeric timestamps, unlike the ISO-8601 strings in session transcripts.
project: Option<String>Absolute path of the project the prompt was typed in.
session_id: Option<String>Session the prompt belongs to.
rest: Map<String, Value>Any additional fields (e.g. pastedContents), keyed as
Claude Code wrote them.
Trait Implementations§
Source§impl Clone for PromptHistoryEntry
impl Clone for PromptHistoryEntry
Source§fn clone(&self) -> PromptHistoryEntry
fn clone(&self) -> PromptHistoryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromptHistoryEntry
impl Debug for PromptHistoryEntry
Auto Trait Implementations§
impl Freeze for PromptHistoryEntry
impl RefUnwindSafe for PromptHistoryEntry
impl Send for PromptHistoryEntry
impl Sync for PromptHistoryEntry
impl Unpin for PromptHistoryEntry
impl UnsafeUnpin for PromptHistoryEntry
impl UnwindSafe for PromptHistoryEntry
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