#[non_exhaustive]pub enum ManifestRejection {
NotJson {
detail: String,
},
NotAnObject,
MissingSchema,
UnsupportedSchema {
declared: String,
},
MissingName,
InvalidName(InvalidName),
SchemaViolation {
field: String,
expected: &'static str,
},
}Expand description
A fatal manifest problem: the plugin MUST be rejected and none of its components discovered or executed (§5.2, §5.3).
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.
NotJson
plugin.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.
UnsupportedSchema
$schema declares an Agent Plugins version this client does not
support (§5.2). The plugin may be valid for a future client.
MissingName
The required name field is missing or not a string.
InvalidName(InvalidName)
The name field violates §5.5.
SchemaViolation
A permitted field has the wrong shape — the fatal remainder of §5.2.
Trait Implementations§
Source§impl Clone for ManifestRejection
impl Clone for ManifestRejection
Source§impl Debug for ManifestRejection
impl Debug for ManifestRejection
Source§impl Display for ManifestRejection
impl Display for ManifestRejection
impl Eq for ManifestRejection
Source§impl Error for ManifestRejection
impl Error for ManifestRejection
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 ManifestRejection
impl PartialEq for ManifestRejection
impl StructuralPartialEq for ManifestRejection
Auto Trait Implementations§
impl Freeze for ManifestRejection
impl RefUnwindSafe for ManifestRejection
impl Send for ManifestRejection
impl Sync for ManifestRejection
impl Unpin for ManifestRejection
impl UnsafeUnpin for ManifestRejection
impl UnwindSafe for ManifestRejection
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.