Skip to main content

new

Function new 

Source
pub(in storage) fn new(
    args: &Args<'_>,
    name: &str,
    config: &StorageProviderGcs,
) -> Result<Option<(String, Arc<Provider>)>>
Expand description

Builds an enabled Google Cloud Storage provider.

A configuration without a bucket returns None. Other settings are applied to the environment-derived builder before retaining the client and signer.