pub struct MetaData { /* private fields */ }
Expand description
Snapshot metadata information.
Implementations§
source§impl MetaData
impl MetaData
sourcepub fn assertion_line(&self) -> Option<u32>
pub fn assertion_line(&self) -> Option<u32>
Returns the assertion line.
sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&str>
Returns the expression that created the snapshot.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns the description that created the snapshot.
sourcepub fn get_relative_source(&self, base: &Path) -> Option<PathBuf>
pub fn get_relative_source(&self, base: &Path) -> Option<PathBuf>
Returns the relative source path.
sourcepub fn input_file(&self) -> Option<&str>
pub fn input_file(&self) -> Option<&str>
Returns the input file reference.