pub struct ConfigurationStore { /* private fields */ }
Expand description

Represents the store of gcloud configurations

Implementations

Opens the configuration store using the OS-specific defaults

If the CLOUDSDK_CONFIG environment variable is set then this will be used, otherwise an OS-specific default location will be used, as defined by the dirs crate, e.g.:

  • Windows: %APPDATA%\gcloud
  • Linux: ~/.config/gcloud
  • Mac: ~/.config/gcloud - note that this does not follow the Apple Developer Guidelines

Opens a configuration store at the given path

Get the name of the currently active configuration

Get the collection of currently available configurations

Check if the given configuration is active

Activate a configuration by name

Copy an existing configuration, preserving all properties

Create a new configuration

Delete a configuration

Describe the properties in the given configuration

Rename a configuration

Find a configuration by name

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.