pub struct AuthoredInput {Show 20 fields
pub kind: StackInputKind,
pub provided_by: Vec<StackInputProvider>,
pub required: bool,
pub label: String,
pub description: String,
pub placeholder: Option<String>,
pub default: Option<InputValue>,
pub when: Option<StackInputCondition>,
pub platforms: Option<Vec<Platform>>,
pub env: Vec<AuthoredEnvMapping>,
pub generate: Option<StackInputGenerate>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub pattern: Option<String>,
pub format: Option<String>,
pub min: Option<InputValue>,
pub max: Option<InputValue>,
pub values: Option<Vec<String>>,
pub min_items: Option<u32>,
pub max_items: Option<u32>,
}Expand description
A stack input as written in a stack file.
Fields§
§kind: StackInputKindInput primitive kind.
provided_by: Vec<StackInputProvider>Who can provide the value. The developer when unset.
required: boolWhether a value is needed before deployment can proceed. True when unset.
label: StringHuman-facing field label.
description: StringHelper text shown where the value is asked for. Required when the input is.
placeholder: Option<String>Example shown in the field.
default: Option<InputValue>Value used when none is provided. Secrets have none.
when: Option<StackInputCondition>Only applies when a boolean input has this value.
platforms: Option<Vec<Platform>>Platforms where the input applies.
env: Vec<AuthoredEnvMapping>Environment variables the value is delivered as.
generate: Option<StackInputGenerate>Let Alien generate the value. Secret, developer-provided inputs only.
min_length: Option<u32>Shortest string, for string and secret inputs.
max_length: Option<u32>Longest string, for string and secret inputs.
pattern: Option<String>Whole-value pattern, for string and secret inputs.
format: Option<String>Semantic format such as url, for string and secret inputs.
min: Option<InputValue>Smallest value, for number and integer inputs.
max: Option<InputValue>Largest value, for number and integer inputs.
values: Option<Vec<String>>Accepted values, for enum inputs.
min_items: Option<u32>Fewest items, for string-list inputs.
max_items: Option<u32>Most items, for string-list inputs.
Implementations§
Source§impl AuthoredInput
impl AuthoredInput
Sourcepub fn into_definition(self, id: &str) -> Result<StackInputDefinition>
pub fn into_definition(self, id: &str) -> Result<StackInputDefinition>
The definition this input becomes under id.