pub struct SkillAsset<'a> {
pub path: &'a str,
pub contents: &'a str,
}Expand description
A bundled auxiliary file installed alongside SKILL.md under the skill
directory — for example a references/ document a skill points its agent to.
The file is written verbatim; unlike SKILL.md it carries no managed marker.
Fields§
§path: &'a strPath relative to the skill directory, using / separators
(e.g. references/naming-output.md). Must be relative with no . or ..
segment, so an asset can never escape the skill directory.
contents: &'a strBundled file contents (typically include_str!).
Trait Implementations§
Source§impl<'a> Clone for SkillAsset<'a>
impl<'a> Clone for SkillAsset<'a>
impl<'a> Copy for SkillAsset<'a>
Auto Trait Implementations§
impl<'a> Forget for SkillAsset<'a>
impl<'a> Freeze for SkillAsset<'a>
impl<'a> RefUnwindSafe for SkillAsset<'a>
impl<'a> Send for SkillAsset<'a>
impl<'a> Sync for SkillAsset<'a>
impl<'a> Unpin for SkillAsset<'a>
impl<'a> UnsafeUnpin for SkillAsset<'a>
impl<'a> UnwindSafe for SkillAsset<'a>
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