struct McpErrorPayload {
kind: AgentErrorKind,
message: String,
refresh_required: Option<IndexRefreshRequired>,
init_required: Option<IndexInitRequired>,
worktree_required: Option<ProjectWorktreeRequired>,
verification_incomplete: Option<IndexVerificationIncomplete>,
project_mismatch: Option<IndexProjectMismatch>,
database_filesystem: Option<DatabaseFilesystemErrorPayload>,
search_capability: Option<SearchCapabilityErrorPayload>,
next: Option<McpNextCall>,
}Expand description
Stable serialized schema for MCP error details.
Fields§
§kind: AgentErrorKindStable machine-readable error kind.
message: StringHuman-readable error and recovery guidance.
refresh_required: Option<IndexRefreshRequired>Bounded local-source mismatch details when refresh is required.
init_required: Option<IndexInitRequired>Exact selected-root initialization handoff.
worktree_required: Option<ProjectWorktreeRequired>Bare/common Git root selection diagnostic.
verification_incomplete: Option<IndexVerificationIncomplete>Bounded source/policy diagnostic when verification cannot complete.
project_mismatch: Option<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<McpNextCall>Reusable recovery call when refresh is required.
Trait Implementations§
Source§impl Debug for McpErrorPayload
impl Debug for McpErrorPayload
Auto Trait Implementations§
impl Freeze for McpErrorPayload
impl RefUnwindSafe for McpErrorPayload
impl Send for McpErrorPayload
impl Sync for McpErrorPayload
impl Unpin for McpErrorPayload
impl UnwindSafe for McpErrorPayload
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