pub(crate) struct CliErrorPayload<'a> {
pub(crate) kind: AgentErrorKind,
pub(crate) message: String,
pub(crate) refresh_required: Option<&'a IndexRefreshRequired>,
pub(crate) init_required: Option<&'a IndexInitRequired>,
pub(crate) worktree_required: Option<&'a ProjectWorktreeRequired>,
pub(crate) verification_incomplete: Option<&'a IndexVerificationIncomplete>,
pub(crate) project_mismatch: Option<&'a IndexProjectMismatch>,
pub(crate) database_filesystem: Option<DatabaseFilesystemErrorPayload>,
pub(crate) search_capability: Option<SearchCapabilityErrorPayload>,
pub(crate) next: Option<CliNextCall<'a>>,
}Expand description
Stable CLI error details shared by TOON and JSON output.
Fields§
§kind: AgentErrorKindMachine-readable error kind.
message: StringHuman-readable recovery guidance.
refresh_required: Option<&'a IndexRefreshRequired>Local-source mismatch details when a refresh is required.
init_required: Option<&'a IndexInitRequired>Exact selected-root initialization handoff.
worktree_required: Option<&'a ProjectWorktreeRequired>Bare/common Git root selection diagnostic.
verification_incomplete: Option<&'a IndexVerificationIncomplete>Source/policy diagnostic when verification cannot complete.
project_mismatch: Option<&'a IndexProjectMismatch>Project/index identity mismatch details.
database_filesystem: Option<DatabaseFilesystemErrorPayload>Content-free database placement details for a rejected SQLite profile.
search_capability: Option<SearchCapabilityErrorPayload>Optional retrieval capability state and recovery guidance.
next: Option<CliNextCall<'a>>Direct CLI recovery selector for a confirmed mismatch.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CliErrorPayload<'a>
impl<'a> RefUnwindSafe for CliErrorPayload<'a>
impl<'a> Send for CliErrorPayload<'a>
impl<'a> Sync for CliErrorPayload<'a>
impl<'a> Unpin for CliErrorPayload<'a>
impl<'a> UnwindSafe for CliErrorPayload<'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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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