Struct buhtig::EnvironmentProvider
source · pub struct EnvironmentProvider { /* private fields */ }
Implementations§
source§impl EnvironmentProvider
impl EnvironmentProvider
sourcepub fn try_default() -> Result<Self>
pub fn try_default() -> Result<Self>
Attempt to read credentials from the environment, using the default
GITHUB_TOKEN
env var.
To customize the name of the env var, use try_new
instead.
Errors
Returns an error if the credentials are missing from the environment.