pub struct SessionRecord {
pub session_id: String,
pub client_id: String,
pub invoker: String,
pub invoker_pid: u32,
pub invoker_type: String,
pub registered_at: DateTime<Utc>,
pub cwd: Option<String>,
pub date: NaiveDate,
}Expand description
A session record (a shell or process that captures invocations).
Fields§
§session_id: StringSession identifier (e.g., “zsh-12345”).
client_id: StringClient identifier (user@hostname).
invoker: StringInvoker name (e.g., “zsh”, “bash”, “shq”, “python”).
invoker_pid: u32Invoker PID.
invoker_type: StringInvoker type: “shell”, “cli”, “hook”, “script”.
registered_at: DateTime<Utc>When the session was first seen.
cwd: Option<String>Initial working directory.
date: NaiveDateDate for partitioning.
Implementations§
Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Source§fn clone(&self) -> SessionRecord
fn clone(&self) -> SessionRecord
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 SessionRecord
impl Debug for SessionRecord
Source§impl<'de> Deserialize<'de> for SessionRecord
impl<'de> Deserialize<'de> for SessionRecord
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 SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnwindSafe for SessionRecord
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