Trait cucumber::Parameter

source ·
pub trait Parameter {
    const REGEX: &'static str;
    const NAME: &'static str;
}
Available on crate feature macros only.
Expand description

Custom parameter of a Cucumber Expression.

Should be implemented only with via Parameter derive macro.

Required Associated Constants§

source

const REGEX: &'static str

Regex matching this Parameter.

Shouldn’t contain any capturing groups.

Validated during Parameter derive macro expansion.

source

const NAME: &'static str

Name of this Parameter to be referenced by in Cucumber Expressions.

Object Safety§

This trait is not object safe.

Implementors§