#[non_exhaustive]pub enum SkillInvalid {
NotUtf8,
NoFrontmatter,
UnterminatedFrontmatter,
BadYaml {
detail: String,
},
NotAMapping,
UnknownField {
field: String,
},
MissingField {
field: &'static str,
},
WrongType {
field: String,
expected: &'static str,
},
BadName {
reason: String,
},
NameMismatch {
name: String,
directory: String,
},
BadDescription {
reason: String,
},
BadCompatibility {
reason: String,
},
}Expand description
Why a discovered skill was skipped (§7.1).
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.
NotUtf8
SKILL.md is not UTF-8 text.
NoFrontmatter
The file does not begin with a --- frontmatter fence.
UnterminatedFrontmatter
The opening fence is never closed by a --- line.
BadYaml
The frontmatter is not parseable YAML.
NotAMapping
The frontmatter is valid YAML but not a mapping.
UnknownField
A frontmatter key outside the Agent Skills specification.
MissingField
A required field is missing.
WrongType
A field has the wrong YAML type.
Fields
BadName
The name field breaks a naming constraint.
NameMismatch
The frontmatter name does not match the directory name.
Fields
BadDescription
The description is empty or over 1024 characters.
BadCompatibility
The compatibility field is empty or over 500 characters.
Trait Implementations§
Source§impl Clone for SkillInvalid
impl Clone for SkillInvalid
Source§impl Debug for SkillInvalid
impl Debug for SkillInvalid
Source§impl Display for SkillInvalid
impl Display for SkillInvalid
impl Eq for SkillInvalid
Source§impl Error for SkillInvalid
impl Error for SkillInvalid
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 SkillInvalid
impl PartialEq for SkillInvalid
impl StructuralPartialEq for SkillInvalid
Auto Trait Implementations§
impl Freeze for SkillInvalid
impl RefUnwindSafe for SkillInvalid
impl Send for SkillInvalid
impl Sync for SkillInvalid
impl Unpin for SkillInvalid
impl UnsafeUnpin for SkillInvalid
impl UnwindSafe for SkillInvalid
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.