pub struct ParserMetadata {
pub version: Option<String>,
pub description: Option<String>,
pub features: Vec<String>,
pub custom: HashMap<String, String>,
}Expand description
Metadata about a parser
Contains additional information about parser capabilities and configuration.
Fields§
§version: Option<String>Parser version
description: Option<String>Description of what this parser does
features: Vec<String>List of supported features
custom: HashMap<String, String>Additional custom metadata
Implementations§
Source§impl ParserMetadata
impl ParserMetadata
Sourcepub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_version(self, version: impl Into<String>) -> Self
Set version
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Set description
Sourcepub fn with_feature(self, feature: impl Into<String>) -> Self
pub fn with_feature(self, feature: impl Into<String>) -> Self
Add a feature
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
Source§impl Default for ParserMetadata
impl Default for ParserMetadata
Source§fn default() -> ParserMetadata
fn default() -> ParserMetadata
Returns the “default value” for a type. Read more
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