pub fn guid_environment_variable(tenant_name: &str) -> StringExpand description
§Create client tenant guid environment variable
This function creates the environment variable used to define the client tenant’s guid
from the tenant’s name. The format of the environment variable is
DSH_API_GUID_[tenant_name],
where the tenant_name will be converted to uppercase and
- will be replaced by _.
§Parameters
tenant_name- client tenant name
§Returns
Client tenants guid environment variable.
§Example
use dsh_api::guid_environment_variable;
let env_var = guid_environment_variable("my-tenant");
assert_eq!(env_var, "DSH_API_GUID_MY_TENANT".to_string());