Enum cucumber::event::request::InvokeArgument [] [src]

pub enum InvokeArgument {
    String(String),
    None,
    Table(Vec<Vec<String>>),
}

The low level type capturing the possible values a step may provide.

Normal regex arguments as well as docstrings come in the form of the String variant. Conversion to other types is done at later stages. Tables are represented as Vec<Vec<String>>

Variants

String(String)NoneTable(Vec<Vec<String>>)

Methods

impl InvokeArgument
[src]

fn from_str(arg: &str) -> InvokeArgument

fn from_step_arg(arg: StepArg) -> InvokeArgument

Trait Implementations

impl Destructurable for InvokeArgument
[src]

fn destructure<T: FromInvokeArg>(self) -> Result<T, T::Err>

impl Debug for InvokeArgument
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for InvokeArgument
[src]

fn clone(&self) -> InvokeArgument

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl PartialEq for InvokeArgument
[src]

fn eq(&self, __arg_0: &InvokeArgument) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &InvokeArgument) -> bool

This method tests for !=.

impl Eq for InvokeArgument
[src]

impl Deserialize for InvokeArgument
[src]

fn deserialize<D: Deserializer>(d: &mut D) -> Result<Self, D::Error>

Deserialize this value given this Deserializer.