Type Alias cucumber::event::Metadata

source ·
pub type Metadata = Event<()>;
Expand description

Shortcut for a detached metadata of an arbitrary Event.

Aliased Type§

struct Metadata {
    pub at: SystemTime,
    pub value: (),
}

Fields§

§at: SystemTime
Available on crate feature timestamps only.

SystemTime when this Event has happened.

§value: ()

Actual value of this Event.

Implementations§

source§

impl Metadata

source

pub fn wrap<V>(self, value: V) -> Event<V>

Wraps the given value with this Event metadata.