#[non_exhaustive]pub enum McpDisabledReason {
NotAFile,
LocationEscapes,
Unavailable {
detail: String,
},
NotJson {
detail: String,
},
NotAnObject,
MissingSchema,
SchemaMismatch {
declared: String,
},
UnexpectedField {
field: String,
},
MissingServers,
}Expand description
Why MCP was disabled for the whole plugin (§7.2.2 rule 2, §6.2).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotAFile
mcp.json exists but is not a regular file (§6.2).
LocationEscapes
mcp.json resolves outside the plugin root (§4.1 rule 2).
The IO source could not provide mcp.json.
NotJson
mcp.json is not valid JSON.
NotAnObject
The document is valid JSON but not an object.
MissingSchema
The required $schema field is missing or not a string.
SchemaMismatch
$schema declares an unsupported version, or one that does not match
the version declared by plugin.json (§10.1).
UnexpectedField
A field other than $schema and mcpServers appears at the top level.
MissingServers
The required mcpServers field is missing or not an object.
Trait Implementations§
Source§impl Clone for McpDisabledReason
impl Clone for McpDisabledReason
Source§impl Debug for McpDisabledReason
impl Debug for McpDisabledReason
Source§impl Display for McpDisabledReason
impl Display for McpDisabledReason
impl Eq for McpDisabledReason
Source§impl Error for McpDisabledReason
impl Error for McpDisabledReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for McpDisabledReason
impl PartialEq for McpDisabledReason
impl StructuralPartialEq for McpDisabledReason
Auto Trait Implementations§
impl Freeze for McpDisabledReason
impl RefUnwindSafe for McpDisabledReason
impl Send for McpDisabledReason
impl Sync for McpDisabledReason
impl Unpin for McpDisabledReason
impl UnsafeUnpin for McpDisabledReason
impl UnwindSafe for McpDisabledReason
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.