Skip to main content

base_url_from_env

Function base_url_from_env 

Source
pub fn base_url_from_env() -> Option<String>
Expand description

Retrieves the Gradium base URL from the GRADIUM_BASE_URL environment variable.

§Returns

Some(String) if the environment variable is set, None otherwise.

§Example

let base_url = gradium::base_url_from_env();