pub struct HookSession {
pub session_id: String,
pub cwd: String,
pub tty: String,
pub status: HookSessionStatus,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub last_event: String,
}Expand description
A Claude Code session tracked via hooks
Fields§
§session_id: StringClaude session ID (from hook payload)
cwd: StringWorking directory of the Claude process
tty: StringTTY device path (e.g. “/dev/ttys001”)
status: HookSessionStatusCurrent status
created_at: DateTime<Utc>When this session was first seen
updated_at: DateTime<Utc>When this session was last updated
last_event: StringName of the last hook event received
Trait Implementations§
Source§impl Clone for HookSession
impl Clone for HookSession
Source§fn clone(&self) -> HookSession
fn clone(&self) -> HookSession
Returns a duplicate of the value. Read more
1.0.0 · 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 HookSession
impl Debug for HookSession
Source§impl<'de> Deserialize<'de> for HookSession
impl<'de> Deserialize<'de> for HookSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HookSession
impl RefUnwindSafe for HookSession
impl Send for HookSession
impl Sync for HookSession
impl Unpin for HookSession
impl UnsafeUnpin for HookSession
impl UnwindSafe for HookSession
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