pub struct SessionStartHookInput {
pub session_id: String,
pub transcript_path: String,
pub cwd: String,
pub permission_mode: Option<String>,
pub hook_event_name: String,
pub source: Option<String>,
pub model: Option<String>,
}Expand description
Hook input for SessionStart events.
Fields§
§session_id: String§transcript_path: String§cwd: String§permission_mode: Option<String>§hook_event_name: String§source: Option<String>§model: Option<String>Implementations§
Source§impl SessionStartHookInput
impl SessionStartHookInput
Sourcepub fn from_reader(reader: impl Read) -> Result<Self>
pub fn from_reader(reader: impl Read) -> Result<Self>
Parse from any reader (for testability).
Trait Implementations§
Source§impl Clone for SessionStartHookInput
impl Clone for SessionStartHookInput
Source§fn clone(&self) -> SessionStartHookInput
fn clone(&self) -> SessionStartHookInput
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 SessionStartHookInput
impl Debug for SessionStartHookInput
Source§impl Default for SessionStartHookInput
impl Default for SessionStartHookInput
Source§fn default() -> SessionStartHookInput
fn default() -> SessionStartHookInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionStartHookInput
impl<'de> Deserialize<'de> for SessionStartHookInput
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 SessionStartHookInput
impl RefUnwindSafe for SessionStartHookInput
impl Send for SessionStartHookInput
impl Sync for SessionStartHookInput
impl Unpin for SessionStartHookInput
impl UnsafeUnpin for SessionStartHookInput
impl UnwindSafe for SessionStartHookInput
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