pub struct ParameterBuilder { /* private fields */ }
Expand description

Builder for Parameter with chainable configuration methods to create a new Parameter.

Implementations§

Constructs a new ParameterBuilder.

Constructs a new Parameter taking all fields values from this object.

Add name of the Parameter.

Add in of the Parameter.

Add required declaration of the Parameter. If ParameterIn::Path is defined this is always Required::True.

Add or change description of the Parameter.

Add or change Parameter deprecated declaration.

Add or change Parameters schema.

Add or change serialization style of Parameter.

Define whether Parameters are exploded or not.

Add or change whether Parameter should allow reserved characters.

Add or change example of Parameter’s potential value.

Trait Implementations§

Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.