#[non_exhaustive]pub struct SecretEnvVar {
pub key: String,
pub project_id: String,
pub secret: String,
pub version: String,
/* private fields */
}Expand description
Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
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.key: StringName of the environment variable.
project_id: StringProject identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
secret: StringName of the secret in secret manager (not the full resource name).
version: StringVersion of the secret (version number or the string ‘latest’). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
Implementations§
Trait Implementations§
Source§impl Clone for SecretEnvVar
impl Clone for SecretEnvVar
Source§fn clone(&self) -> SecretEnvVar
fn clone(&self) -> SecretEnvVar
Returns a duplicate 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 SecretEnvVar
impl Debug for SecretEnvVar
Source§impl Default for SecretEnvVar
impl Default for SecretEnvVar
Source§fn default() -> SecretEnvVar
fn default() -> SecretEnvVar
Returns the “default value” for a type. Read more
Source§impl Message for SecretEnvVar
impl Message for SecretEnvVar
Source§impl PartialEq for SecretEnvVar
impl PartialEq for SecretEnvVar
impl StructuralPartialEq for SecretEnvVar
Auto Trait Implementations§
impl Freeze for SecretEnvVar
impl RefUnwindSafe for SecretEnvVar
impl Send for SecretEnvVar
impl Sync for SecretEnvVar
impl Unpin for SecretEnvVar
impl UnwindSafe for SecretEnvVar
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