pub struct ParsedRule {
pub frontmatter: Value,
pub body: String,
}Expand description
Parsed rule file: JSON frontmatter value and markdown body.
Fields§
§frontmatter: ValueFrontmatter converted to JSON for schema validation.
body: StringMarkdown content after the closing ---.
Trait Implementations§
Source§impl Clone for ParsedRule
impl Clone for ParsedRule
Source§fn clone(&self) -> ParsedRule
fn clone(&self) -> ParsedRule
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 moreAuto Trait Implementations§
impl Freeze for ParsedRule
impl RefUnwindSafe for ParsedRule
impl Send for ParsedRule
impl Sync for ParsedRule
impl Unpin for ParsedRule
impl UnsafeUnpin for ParsedRule
impl UnwindSafe for ParsedRule
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