Enum object_store::gcp::GoogleConfigKey
source · #[non_exhaustive]pub enum GoogleConfigKey {
ServiceAccount,
ServiceAccountKey,
Bucket,
ApplicationCredentials,
Client(ClientConfigKey),
}
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§
source§impl AsRef<str> for GoogleConfigKey
impl AsRef<str> for GoogleConfigKey
source§impl Clone for GoogleConfigKey
impl Clone for GoogleConfigKey
source§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 moresource§impl Debug for GoogleConfigKey
impl Debug for GoogleConfigKey
source§impl<'de> Deserialize<'de> for GoogleConfigKey
impl<'de> Deserialize<'de> for GoogleConfigKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for GoogleConfigKey
impl FromStr for GoogleConfigKey
source§impl Hash for GoogleConfigKey
impl Hash for GoogleConfigKey
source§impl PartialEq for GoogleConfigKey
impl PartialEq for GoogleConfigKey
source§impl Serialize for GoogleConfigKey
impl Serialize for GoogleConfigKey
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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