[][src]Struct openshift_openapi::api::template::v1::Parameter

pub struct Parameter {
    pub description: Option<String>,
    pub display_name: Option<String>,
    pub from: Option<String>,
    pub generate: Option<String>,
    pub name: String,
    pub required: Option<bool>,
    pub value: Option<String>,
}

Parameter defines a name/value variable that is to be processed during the Template to Config transformation.

Fields

description: Option<String>

Description of a parameter. Optional.

display_name: Option<String>

Optional: The name that will show in UI instead of parameter 'Name'

from: Option<String>

From is an input value for the generator. Optional.

generate: Option<String>

generate specifies the generator to be used to generate random string from an input value specified by From field. The result string is stored into Value field. If empty, no generator is being used, leaving the result Value untouched. Optional.

The only supported generator is "expression", which accepts a "from" value in the form of a simple regular expression containing the range expression "[a-zA-Z0-9]", and the length expression "a{length}".

Examples:

from | value ----------------------------- "test[0-9]{1}x" | "test7x" "[0-1]{8}" | "01001100" "0x[A-F0-9]{4}" | "0xB3AF" "[a-zA-Z0-9]{8}" | "hW4yQU5i"

name: String

Name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required.

required: Option<bool>

Optional: Indicates the parameter must have a value. Defaults to false.

value: Option<String>

Value holds the Parameter data. If specified, the generator will be ignored. The value replaces all occurrences of the Parameter ${Name} expression during the Template to Config transformation. Optional.

Trait Implementations

impl Clone for Parameter[src]

impl Debug for Parameter[src]

impl Default for Parameter[src]

impl<'de> Deserialize<'de> for Parameter[src]

impl PartialEq<Parameter> for Parameter[src]

impl Serialize for Parameter[src]

impl StructuralPartialEq for Parameter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.