pub struct FrontmatterParser {
pub file_filter: Option<GlobSet>,
pub keys: Option<Vec<String>>,
}Expand description
Built-in frontmatter parser. Extracts YAML frontmatter as links and metadata.
Fields§
§file_filter: Option<GlobSet>File routing filter. None = receives all File nodes.
keys: Option<Vec<String>>Keys whose values yield edges. None falls back to shape detection over
the whole block, which cannot tell a derivation (sources:) from a value
that merely looks like a path (route: /customers). Naming the keys lets
the config say what the graph tracks. Scopes edges only — metadata always
captures the entire block.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrontmatterParser
impl RefUnwindSafe for FrontmatterParser
impl Send for FrontmatterParser
impl Sync for FrontmatterParser
impl Unpin for FrontmatterParser
impl UnsafeUnpin for FrontmatterParser
impl UnwindSafe for FrontmatterParser
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