pub struct McpErrorInfo {
pub server_id: Option<i64>,
pub server_name: String,
pub message: String,
pub category: McpErrorCategory,
}Expand description
User-safe error information for MCP events.
This type is used in AppEvent::McpServerError to provide error details
that are safe to display to users (no raw process/SQL errors).
Fields§
§server_id: Option<i64>ID of the MCP server (if known).
server_name: StringName of the MCP server.
message: StringUser-friendly error message.
category: McpErrorCategoryError category for UI handling.
Implementations§
Source§impl McpErrorInfo
impl McpErrorInfo
Sourcepub fn process(
server_id: Option<i64>,
server_name: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn process( server_id: Option<i64>, server_name: impl Into<String>, message: impl Into<String>, ) -> Self
Create error info for a process error.
Trait Implementations§
Source§impl Clone for McpErrorInfo
impl Clone for McpErrorInfo
Source§fn clone(&self) -> McpErrorInfo
fn clone(&self) -> McpErrorInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpErrorInfo
impl Debug for McpErrorInfo
Source§impl<'de> Deserialize<'de> for McpErrorInfo
impl<'de> Deserialize<'de> for McpErrorInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for McpErrorInfo
impl RefUnwindSafe for McpErrorInfo
impl Send for McpErrorInfo
impl Sync for McpErrorInfo
impl Unpin for McpErrorInfo
impl UnwindSafe for McpErrorInfo
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