pub struct SessionStartInput {
pub timestamp: i64,
pub cwd: PathBuf,
pub source: String,
pub initial_prompt: Option<String>,
}Expand description
Input for the sessionStart hook.
Fields§
§timestamp: i64Unix timestamp (ms).
cwd: PathBufWorking directory.
source: StringHow the session was started: "startup", "resume", or "new".
initial_prompt: Option<String>The first user message, if any.
Trait Implementations§
Source§impl Clone for SessionStartInput
impl Clone for SessionStartInput
Source§fn clone(&self) -> SessionStartInput
fn clone(&self) -> SessionStartInput
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 SessionStartInput
impl Debug for SessionStartInput
Source§impl<'de> Deserialize<'de> for SessionStartInput
impl<'de> Deserialize<'de> for SessionStartInput
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 SessionStartInput
impl RefUnwindSafe for SessionStartInput
impl Send for SessionStartInput
impl Sync for SessionStartInput
impl Unpin for SessionStartInput
impl UnsafeUnpin for SessionStartInput
impl UnwindSafe for SessionStartInput
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