pub struct PreEditInput<'a> {
pub path: &'a Path,
pub before: Option<&'a str>,
pub after: &'a str,
pub project_root: Option<&'a str>,
pub agent: Option<&'a str>,
}Expand description
What an edit is about to do. before = None: the file is new.
Fields§
§path: &'a PathThe file the edit writes (absolute, or relative to the process cwd).
before: Option<&'a str>§after: &'a str§project_root: Option<&'a str>Project root of the editing session, when the caller knows it (MCP tools); checkers that need none find their own root.
agent: Option<&'a str>The editing agent, when known (claims are held per agent).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for PreEditInput<'a>
impl<'a> Clone for PreEditInput<'a>
impl<'a> Copy for PreEditInput<'a>
Auto Trait Implementations§
impl<'a> Forget for PreEditInput<'a>
impl<'a> Freeze for PreEditInput<'a>
impl<'a> Move for PreEditInput<'a>
impl<'a> RefUnwindSafe for PreEditInput<'a>
impl<'a> Send for PreEditInput<'a>
impl<'a> Sync for PreEditInput<'a>
impl<'a> Unpin for PreEditInput<'a>
impl<'a> UnsafeUnpin for PreEditInput<'a>
impl<'a> UnwindSafe for PreEditInput<'a>
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more