pub struct Notice {
pub lease_id: LeaseId,
pub session: SessionKey,
pub cause: EndCause,
pub command: String,
pub tool_use_id: Option<String>,
pub ended_at_ms: i64,
pub delivered_at_ms: Option<i64>,
}Expand description
A kill or removal that Claude must hear about once.
Fields§
§lease_id: LeaseIdLease the notice is about. A lease ends once, so this also identifies the notice.
session: SessionKeySession to tell.
cause: EndCauseWhat the user did: EndCause::Killed or EndCause::Removed.
command: StringThe lease’s label, usually the command.
tool_use_id: Option<String>Claude Code’s ID for the tool call the lease was bound to, or None when no hook
reported one. A hook compares it with its own call to say “this command”.
ended_at_ms: i64When the lease ended, in milliseconds since the Unix epoch.
delivered_at_ms: Option<i64>When a hook or tool result told the session, or None while it has not been told.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Notice
impl<'de> Deserialize<'de> for Notice
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
impl Eq for Notice
impl StructuralPartialEq for Notice
Auto Trait Implementations§
impl Forget for Notice
impl Freeze for Notice
impl Move for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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