Skip to main content

import_client_credentials_for

Function import_client_credentials_for 

Source
pub fn import_client_credentials_for(
    explicit_account: Option<&str>,
    explicit_path: Option<&Path>,
) -> Result<ImportOutcome>
Expand description

import_client_credentials, but honoring the named-account resolution added by issue #1500.

explicit_account is the already-resolved --account/ crate::gmail::account::GMAIL_ACCOUNT_ENV override, if any — resolved via auth::resolve_for_write, so an explicit name need not already be configured (this is how a new account is created); explicit_path is the client_secret.json path argument, resolved exactly as in import_client_credentials.