Struct insta::MetaData[][src]

pub struct MetaData { /* fields omitted */ }

Snapshot metadata information.

Implementations

impl MetaData[src]

pub fn source(&self) -> Option<&str>[src]

Returns the absolute source path.

pub fn expression(&self) -> Option<&str>[src]

Returns the expression that created the snapshot.

pub fn get_relative_source(&self, base: &Path) -> Option<PathBuf>[src]

Returns the relative source path.

pub fn input_file(&self) -> Option<&str>[src]

Returns the input file reference.

Trait Implementations

impl Clone for MetaData[src]

impl Debug for MetaData[src]

impl Default for MetaData[src]

impl<'de> Deserialize<'de> for MetaData[src]

impl Serialize for MetaData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.