pub struct LeaseBinding {
pub tool_use_id: String,
pub bound_at_ms: i64,
pub root: Option<BoundProcess>,
}Expand description
The command a lease covers, as the PreToolUse hook reported it, and the process tree it runs as once that is found. A later report for the same lease replaces it.
Fields§
§tool_use_id: StringClaude Code’s ID for the tool call that runs the command.
bound_at_ms: i64When the hook reported the command, in milliseconds since the Unix epoch. Processes that started before it are never part of the command.
root: Option<BoundProcess>Root of the command’s process tree; None until it is found.
Trait Implementations§
Source§impl Clone for LeaseBinding
impl Clone for LeaseBinding
Source§impl Debug for LeaseBinding
impl Debug for LeaseBinding
Source§impl<'de> Deserialize<'de> for LeaseBinding
impl<'de> Deserialize<'de> for LeaseBinding
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 LeaseBinding
Source§impl PartialEq for LeaseBinding
impl PartialEq for LeaseBinding
Source§impl Serialize for LeaseBinding
impl Serialize for LeaseBinding
impl StructuralPartialEq for LeaseBinding
Auto Trait Implementations§
impl Forget for LeaseBinding
impl Freeze for LeaseBinding
impl Move for LeaseBinding
impl RefUnwindSafe for LeaseBinding
impl Send for LeaseBinding
impl Sync for LeaseBinding
impl Unpin for LeaseBinding
impl UnsafeUnpin for LeaseBinding
impl UnwindSafe for LeaseBinding
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