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/rules.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>
Source§fn clone(&self) -> SkillAsset<'a>
fn clone(&self) -> SkillAsset<'a>
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 moreimpl<'a> Copy for SkillAsset<'a>
Auto Trait Implementations§
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