Struct ibuilder::BuildableValueConfig[][src]

pub struct BuildableValueConfig<T> {
    pub default: Option<T>,
    pub prompt: Option<String>,
}
Expand description

The configuration for customizing the aspect of a BuildableValue that produces a value of type T.

Fields

default: Option<T>

The default value to use, if None there is no default value and the field must be provided.

prompt: Option<String>

The prompt message to show to the user, if None a default message is shown.

Trait Implementations

Returns the “default value” for a type. Read more

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.