pub struct Skill {
pub frontmatter: Frontmatter,
pub body: String,
}Expand description
A fully-loaded skill: parsed frontmatter plus the Markdown body.
Constructing a Skill runs the validation in Skill::parse; the
public constructors either produce a valid instance or a
SkillError.
Fields§
§frontmatter: FrontmatterParsed frontmatter.
body: StringMarkdown body (everything after the closing --- delimiter).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnsafeUnpin for Skill
impl UnwindSafe for Skill
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