pub struct ApiKeyOptions { /* private fields */ }Expand description
Configuration options for API key credentials.
Implementations§
Source§impl ApiKeyOptions
impl ApiKeyOptions
Sourcepub fn set_quota_project<T: Into<String>>(self, v: T) -> Self
pub fn set_quota_project<T: Into<String>>(self, v: T) -> Self
Set the quota project.
If unset, the project associated with the API key will be used as the quota project.
You can also configure the quota project by setting the
GOOGLE_CLOUD_QUOTA_PROJECT environment variable. The environment
variable takes precedence over this option’s value.
Trait Implementations§
Source§impl Default for ApiKeyOptions
impl Default for ApiKeyOptions
Source§fn default() -> ApiKeyOptions
fn default() -> ApiKeyOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApiKeyOptions
impl RefUnwindSafe for ApiKeyOptions
impl Send for ApiKeyOptions
impl Sync for ApiKeyOptions
impl Unpin for ApiKeyOptions
impl UnwindSafe for ApiKeyOptions
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