Function rustream::squire::startup::parse_i32

source ·
fn parse_i32(key: &str) -> Option<i32>
Expand description

Extracts the env var by key and parses it as a i32

§Arguments

  • key - Key for the environment variable.

§Returns

Returns an Option<i32> if the value is available.

§Panics

If the value is present, but it is an invalid data-type.