pub struct MetadataExtractor;Expand description
Metadata extractor for resource files.
Extracts dependency information embedded in resource files:
- Markdown files (.md): YAML frontmatter between
---delimiters - JSON files (.json):
dependenciesfield in the JSON structure - Other files: No dependencies supported
Implementations§
Source§impl MetadataExtractor
impl MetadataExtractor
Sourcepub fn extract_auto(content: &str) -> Result<DependencyMetadata>
pub fn extract_auto(content: &str) -> Result<DependencyMetadata>
Extract metadata from file content without knowing the file type.
Tries to detect the format automatically.
Auto Trait Implementations§
impl Freeze for MetadataExtractor
impl RefUnwindSafe for MetadataExtractor
impl Send for MetadataExtractor
impl Sync for MetadataExtractor
impl Unpin for MetadataExtractor
impl UnwindSafe for MetadataExtractor
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