#[non_exhaustive]pub struct SecretKeySelector {
pub secret: String,
pub version: String,
/* private fields */
}Expand description
SecretEnvVarSource represents a source for the value of an EnvVar.
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.secret: StringRequired. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.
version: StringThe Cloud Secret Manager secret version. Can be ‘latest’ for the latest version, an integer for a specific version, or a version alias.
Implementations§
Trait Implementations§
Source§impl Clone for SecretKeySelector
impl Clone for SecretKeySelector
Source§fn clone(&self) -> SecretKeySelector
fn clone(&self) -> SecretKeySelector
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 SecretKeySelector
impl Debug for SecretKeySelector
Source§impl Default for SecretKeySelector
impl Default for SecretKeySelector
Source§fn default() -> SecretKeySelector
fn default() -> SecretKeySelector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecretKeySelectorwhere
SecretKeySelector: Default,
impl<'de> Deserialize<'de> for SecretKeySelectorwhere
SecretKeySelector: 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 SecretKeySelector
impl Message for SecretKeySelector
Source§impl PartialEq for SecretKeySelector
impl PartialEq for SecretKeySelector
Source§impl Serialize for SecretKeySelector
impl Serialize for SecretKeySelector
impl StructuralPartialEq for SecretKeySelector
Auto Trait Implementations§
impl Freeze for SecretKeySelector
impl RefUnwindSafe for SecretKeySelector
impl Send for SecretKeySelector
impl Sync for SecretKeySelector
impl Unpin for SecretKeySelector
impl UnwindSafe for SecretKeySelector
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