Struct repl_rs::Parameter[][src]

pub struct Parameter { /* fields omitted */ }
Expand description

Command parameter

Implementations

Create a new command parameter with the given name

Set whether the parameter is required, default is not required. Note that you cannot have a required parameter after a non-required one

Set a default for an optional parameter. Note that you can’t have a default for a required parameter

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.