Function validate_env

pub fn validate_env<CTX, ERROR>(context: CTX) -> Result<(), ERROR>