Function action_core::get_input

source ·
pub fn get_input<T>(
    name: impl AsRef<str>
) -> Result<Option<T>, <T as ParseInput>::Error>where
    T: ParseInput,
Expand description

Gets the value of an input.

Attempts to parse as T if a value is present, other returns Ok(None).

Errors

If the variable cannot be parsed.