#[non_exhaustive]pub struct ApiKeyConfig {
pub api_key_secret_version: String,
/* private fields */
}Expand description
The API secret.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_key_secret_version: StringRequired. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}
Implementations§
Source§impl ApiKeyConfig
impl ApiKeyConfig
pub fn new() -> Self
Sourcepub fn set_api_key_secret_version<T: Into<String>>(self, v: T) -> Self
pub fn set_api_key_secret_version<T: Into<String>>(self, v: T) -> Self
Sets the value of api_key_secret_version.
Trait Implementations§
Source§impl Clone for ApiKeyConfig
impl Clone for ApiKeyConfig
Source§fn clone(&self) -> ApiKeyConfig
fn clone(&self) -> ApiKeyConfig
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 ApiKeyConfig
impl Debug for ApiKeyConfig
Source§impl Default for ApiKeyConfig
impl Default for ApiKeyConfig
Source§fn default() -> ApiKeyConfig
fn default() -> ApiKeyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiKeyConfigwhere
ApiKeyConfig: Default,
impl<'de> Deserialize<'de> for ApiKeyConfigwhere
ApiKeyConfig: Default,
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 Message for ApiKeyConfig
impl Message for ApiKeyConfig
Source§impl PartialEq for ApiKeyConfig
impl PartialEq for ApiKeyConfig
Source§impl Serialize for ApiKeyConfig
impl Serialize for ApiKeyConfig
impl StructuralPartialEq for ApiKeyConfig
Auto Trait Implementations§
impl Freeze for ApiKeyConfig
impl RefUnwindSafe for ApiKeyConfig
impl Send for ApiKeyConfig
impl Sync for ApiKeyConfig
impl Unpin for ApiKeyConfig
impl UnwindSafe for ApiKeyConfig
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