Skip to main content

setup_user

Function setup_user 

Source
pub async fn setup_user<B: CredentialBroker + ?Sized>(
    broker: &B,
    project_id_env: Option<String>,
) -> Result<UserData, SetupError>
Expand description

Resolve the user’s Code Assist project id and tier through the broker.

The project_id_env argument is what the caller reads from GOOGLE_CLOUD_PROJECT / GOOGLE_CLOUD_PROJECT_ID — passing it in keeps this module env-free and testable.