Enum GoogleConfigKey
#[non_exhaustive]pub enum GoogleConfigKey {
ServiceAccount,
ServiceAccountKey,
Bucket,
ApplicationCredentials,
Client(ClientConfigKey),
}
Available on crate feature
gcp
only.Expand description
Configuration keys for [GoogleCloudStorageBuilder
]
Configuration via keys can be done via [GoogleCloudStorageBuilder::with_config
]
§Example
let builder = GoogleCloudStorageBuilder::new()
.with_config("google_service_account".parse().unwrap(), "my-service-account")
.with_config(GoogleConfigKey::Bucket, "my-bucket");
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ServiceAccount
Path to the service account file
Supported keys:
google_service_account
service_account
google_service_account_path
service_account_path
ServiceAccountKey
The serialized service account key.
Supported keys:
google_service_account_key
service_account_key
Bucket
Bucket name
See [GoogleCloudStorageBuilder::with_bucket_name
] for details.
Supported keys:
google_bucket
google_bucket_name
bucket
bucket_name
ApplicationCredentials
Application credentials path
See [GoogleCloudStorageBuilder::with_application_credentials
].
Client(ClientConfigKey)
Client options
Trait Implementations§
§impl AsRef<str> for GoogleConfigKey
impl AsRef<str> for GoogleConfigKey
§impl Clone for GoogleConfigKey
impl Clone for GoogleConfigKey
§fn clone(&self) -> GoogleConfigKey
fn clone(&self) -> GoogleConfigKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GoogleConfigKey
impl Debug for GoogleConfigKey
§impl<'de> Deserialize<'de> for GoogleConfigKey
impl<'de> Deserialize<'de> for GoogleConfigKey
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GoogleConfigKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GoogleConfigKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl FromStr for GoogleConfigKey
impl FromStr for GoogleConfigKey
§impl Hash for GoogleConfigKey
impl Hash for GoogleConfigKey
§impl PartialEq for GoogleConfigKey
impl PartialEq for GoogleConfigKey
§impl Serialize for GoogleConfigKey
impl Serialize for GoogleConfigKey
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for GoogleConfigKey
impl Eq for GoogleConfigKey
impl StructuralPartialEq for GoogleConfigKey
Auto Trait Implementations§
impl Freeze for GoogleConfigKey
impl RefUnwindSafe for GoogleConfigKey
impl Send for GoogleConfigKey
impl Sync for GoogleConfigKey
impl Unpin for GoogleConfigKey
impl UnwindSafe for GoogleConfigKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more