pub struct ParserMetadata {
pub description: &'static str,
pub file_patterns: &'static [&'static str],
pub package_type: &'static str,
pub primary_language: &'static str,
pub documentation_url: Option<&'static str>,
}Expand description
Parser metadata for auto-generating documentation.
This module provides infrastructure for registering parser metadata
that is used to automatically generate docs/SUPPORTED_FORMATS.md.
Fields are used by bin/generate_supported_formats.rs but not in library code,
so we allow dead_code warnings for library builds.
Fields§
§description: &'static strHuman-readable description (e.g., “npm package.json manifest”)
file_patterns: &'static [&'static str]File patterns this parser matches (e.g., [“**/package.json”])
package_type: &'static strPackage type identifier (e.g., “npm”, “pypi”, “maven”)
primary_language: &'static strPrimary programming language (e.g., “JavaScript”, “Python”)
documentation_url: Option<&'static str>Optional documentation URL
Trait Implementations§
Source§impl Clone for ParserMetadata
impl Clone for ParserMetadata
Source§fn clone(&self) -> ParserMetadata
fn clone(&self) -> ParserMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserMetadata
impl Debug for ParserMetadata
impl Collect for ParserMetadata
Auto Trait Implementations§
impl Freeze for ParserMetadata
impl RefUnwindSafe for ParserMetadata
impl Send for ParserMetadata
impl Sync for ParserMetadata
impl Unpin for ParserMetadata
impl UnsafeUnpin for ParserMetadata
impl UnwindSafe for ParserMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more