#[non_exhaustive]pub enum GoogleConfigKey {
ServiceAccount,
ServiceAccountKey,
ApplicationCredentials,
Client(ClientConfigKey),
}Expand description
Configuration keys for GoogleBuilder
Configuration via keys can be done via GoogleBuilder::with_config
§Example
let builder = GoogleBuilder::new()
.with_config("google_service_account".parse().unwrap(), "my-service-account");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_accountservice_accountgoogle_service_account_pathservice_account_path
ServiceAccountKey
The serialized service account key.
Supported keys:
google_service_account_keyservice_account_key
ApplicationCredentials
Application credentials path
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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GoogleConfigKey
Source§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
impl Eq for GoogleConfigKey
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§fn eq(&self, other: &GoogleConfigKey) -> bool
fn eq(&self, other: &GoogleConfigKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GoogleConfigKey
impl Serialize 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 UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.