Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§