pub enum ManifestError {
Json(String),
BadSchemaVersion(u32),
BadName {
name: String,
source: IdentityError,
},
EmptyTools,
DuplicateTool {
name: String,
},
BadTimeout {
tool: String,
},
BadExposure {
tool: String,
},
BadCapability {
tool: String,
reason: String,
},
BadServer {
tool: String,
reason: String,
},
PathLaw {
tool: String,
source: ScriptLawError,
},
EmptyVersion,
BadSkills {
reason: String,
},
}Expand description
Manifest parse/validation errors. fail-closed: reject anything invalid, no compromises.
Variants§
Json(String)
Wrong JSON syntax or shape (serde).
BadSchemaVersion(u32)
schemaVersion is not 1.
BadName
Plugin name or tool name is invalid (charset / reserved word / too long).
EmptyTools
tools is empty.
DuplicateTool
Duplicate tool name (including the mcp server label).
BadTimeout
timeout_secs is 0 (schema minimum 1).
BadExposure
exposure uses a tier outside the schema (v1 has only direct/deferred).
BadCapability
Invalid capability entry (fs:read without paths / net:http without
hosts / empty list).
BadServer
Invalid mcp server (command/url not mutually exclusive, env/headers on
the wrong side, url shape).
PathLaw
Path-law violation (relative path escaping the plugin root, etc.).
EmptyVersion
version is empty.
BadSkills
skills entry is an empty string or duplicated.
Trait Implementations§
Source§impl Clone for ManifestError
impl Clone for ManifestError
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
impl Eq for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
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 ManifestError
impl PartialEq for ManifestError
impl StructuralPartialEq for ManifestError
Auto Trait Implementations§
impl Forget for ManifestError
impl Freeze for ManifestError
impl Move for ManifestError
impl RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl UnsafeUnpin for ManifestError
impl UnwindSafe for ManifestError
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.