pub struct ParserMetadata {
pub format: String,
pub value: Value,
}Expand description
Codec type for parser_metadata_v1 — tier-3 parser metadata.
format is the producer’s source-format identity (e.g. "stata_dta",
"sas7bdat", "sas_xport"), so a consumer can interpret value without
guessing. value is an open bag of parser-level facts; consumers diff it
generically and ignore keys they do not recognize. Deliberately flat: this
is “a matching subtype for a record artifact” today, and may grow typed
structure in a future version rather than via artifact-format inheritance.
Fields§
§format: String§value: ValueImplementations§
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 (const: unstable) · 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<'de> Deserialize<'de> for ParserMetadata
impl<'de> Deserialize<'de> for ParserMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParserMetadata
impl PartialEq for ParserMetadata
Source§fn eq(&self, other: &ParserMetadata) -> bool
fn eq(&self, other: &ParserMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParserMetadata
impl Serialize for ParserMetadata
impl Eq for ParserMetadata
impl StructuralPartialEq 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