pub struct SessionEndInput {
pub timestamp: i64,
pub cwd: PathBuf,
pub reason: String,
pub final_message: Option<String>,
pub error: Option<String>,
}Expand description
Input for the sessionEnd hook.
Fields§
§timestamp: i64Unix timestamp (ms).
cwd: PathBufWorking directory.
reason: StringWhy the session ended: "complete", "error", "abort", "timeout", "user_exit".
final_message: Option<String>The last assistant message.
error: Option<String>Error message, if the session ended due to an error.
Trait Implementations§
Source§impl Clone for SessionEndInput
impl Clone for SessionEndInput
Source§fn clone(&self) -> SessionEndInput
fn clone(&self) -> SessionEndInput
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 SessionEndInput
impl Debug for SessionEndInput
Source§impl<'de> Deserialize<'de> for SessionEndInput
impl<'de> Deserialize<'de> for SessionEndInput
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 SessionEndInput
impl RefUnwindSafe for SessionEndInput
impl Send for SessionEndInput
impl Sync for SessionEndInput
impl Unpin for SessionEndInput
impl UnsafeUnpin for SessionEndInput
impl UnwindSafe for SessionEndInput
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