pub struct SecretEnvVar {
pub key: Option<String>,
pub project_id: Option<String>,
pub secret: Option<String>,
pub version: Option<String>,
}
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key: Option<String>
Name of the environment variable.
project_id: Option<String>
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function’s project assuming that the secret exists in the same project as of the function.
secret: Option<String>
Name of the secret in secret manager (not the full resource name).
version: Option<String>
Version 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.
Trait Implementations§
Source§impl Clone for SecretEnvVar
impl Clone for SecretEnvVar
Source§fn clone(&self) -> SecretEnvVar
fn clone(&self) -> SecretEnvVar
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl<'de> Deserialize<'de> for SecretEnvVar
impl<'de> Deserialize<'de> for SecretEnvVar
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>,
Source§impl Serialize for SecretEnvVar
impl Serialize for SecretEnvVar
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more