pub struct ApplyEditOutcome {
pub applied: bool,
pub failure_reason: Option<String>,
}Expand description
Result the host reports back to the actor’s response task.
Mirrors ApplyWorkspaceEditResponse minus the failed_change
index which the host doesn’t track today (every per-file edit
is a separate batch; partial-apply with a failure echoes a
warning but doesn’t roll back). Future atomic-rollback work
fills failed_change.
Fields§
§applied: boolWhether ANY edit was applied. false when nothing
landed (parse error, no buffer matched the URI, etc.);
true for full success AND for partial success.
failure_reason: Option<String>Optional human-readable description – spec lets the
client send this when applied: false and surfaces it
in the server’s failure handling. We also send it on
partial success so server logs explain the situation.
Trait Implementations§
Source§impl Clone for ApplyEditOutcome
impl Clone for ApplyEditOutcome
Source§fn clone(&self) -> ApplyEditOutcome
fn clone(&self) -> ApplyEditOutcome
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 moreAuto Trait Implementations§
impl Freeze for ApplyEditOutcome
impl RefUnwindSafe for ApplyEditOutcome
impl Send for ApplyEditOutcome
impl Sync for ApplyEditOutcome
impl Unpin for ApplyEditOutcome
impl UnsafeUnpin for ApplyEditOutcome
impl UnwindSafe for ApplyEditOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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