#[non_exhaustive]pub enum Rule {
UnknownManifestField,
ExtensionsIgnored,
ComponentInvalid,
SkillSkipped,
ServerSkipped,
McpDisabled,
}Expand description
The closed set of non-fatal report conditions defined by the specification.
Each variant maps to the spec section that mandates the report, available
via Rule::section, and to a stable machine-readable Rule::code.
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.
UnknownManifestField
An unknown top-level manifest field was reported and ignored (§5.2).
ExtensionsIgnored
A non-object extensions field was reported and ignored (§8.1).
ComponentInvalid
A fixed component location exists but is unusable (§6.2, §4.1 rule 2).
SkillSkipped
A discovered skill was skipped (§7.1, §4.1 rule 3).
ServerSkipped
An individual MCP server entry was skipped (§7.2.2 rules 3–4).
McpDisabled
MCP was disabled for the whole plugin (§7.2.2 rule 2).
Implementations§
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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.