pub struct WriteCall {
pub tool: String,
pub input: Value,
pub cwd: PathBuf,
pub session_id: Option<String>,
}Expand description
A non-shell file-write tool call surfaced for provenance observation: a
Cursor Write / StrReplace / afterFileEdit, or an OpenCode write /
edit. The raw input object is handed to
crate::observe::classify_tool_write, which extracts the target path — the
write body (a content field, or old_string/new_string pairs) is never
read, persisted, or logged (spine #6).
The fields are deliberately the same normalized shape as ContentCall
because both classifiers consume (tool, args, workspace); a distinct type
keeps the ingest and write observation surfaces honest at the call site.
Fields§
§tool: String§input: Value§cwd: PathBuf§session_id: Option<String>Trait Implementations§
impl Eq for WriteCall
impl StructuralPartialEq for WriteCall
Auto Trait Implementations§
impl Forget for WriteCall
impl Freeze for WriteCall
impl Move for WriteCall
impl RefUnwindSafe for WriteCall
impl Send for WriteCall
impl Sync for WriteCall
impl Unpin for WriteCall
impl UnsafeUnpin for WriteCall
impl UnwindSafe for WriteCall
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.