pub struct SkillFrontmatter {
pub name: String,
pub description: String,
pub license: Option<String>,
pub compatibility: Option<String>,
pub metadata: HashMap<String, Value>,
pub allowed_tools: Vec<String>,
}Expand description
Frontmatter metadata for a skill. https://agentskills.io/specification
Fields§
§name: StringA required short identifier (1-64 chars) containing only lowercase letters, numbers, and hyphens.
description: StringA required concise description of what the skill does and when an agent should use it.
license: Option<String>License name or reference to a bundled license file.
compatibility: Option<String>Max 500 characters. Indicates environment requirements (intended product, system packages, network access, etc.).
metadata: HashMap<String, Value>Arbitrary key-value mapping for additional metadata.
allowed_tools: Vec<String>Space-delimited list of pre-approved tools the skill may use. (Experimental)
Trait Implementations§
Source§impl Clone for SkillFrontmatter
impl Clone for SkillFrontmatter
Source§fn clone(&self) -> SkillFrontmatter
fn clone(&self) -> SkillFrontmatter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkillFrontmatter
impl Debug for SkillFrontmatter
Source§impl Default for SkillFrontmatter
impl Default for SkillFrontmatter
Source§fn default() -> SkillFrontmatter
fn default() -> SkillFrontmatter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SkillFrontmatterwhere
SkillFrontmatter: Default,
impl<'de> Deserialize<'de> for SkillFrontmatterwhere
SkillFrontmatter: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SkillFrontmatter
impl RefUnwindSafe for SkillFrontmatter
impl Send for SkillFrontmatter
impl Sync for SkillFrontmatter
impl Unpin for SkillFrontmatter
impl UnsafeUnpin for SkillFrontmatter
impl UnwindSafe for SkillFrontmatter
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