#[non_exhaustive]pub struct EnvVarSource {
pub secret_key_ref: Option<SecretKeySelector>,
/* private fields */
}Expand description
EnvVarSource 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_key_ref: Option<SecretKeySelector>Selects a secret and a specific version from Cloud Secret Manager.
Implementations§
Source§impl EnvVarSource
impl EnvVarSource
pub fn new() -> Self
Sourcepub fn set_secret_key_ref<T>(self, v: T) -> Selfwhere
T: Into<SecretKeySelector>,
pub fn set_secret_key_ref<T>(self, v: T) -> Selfwhere
T: Into<SecretKeySelector>,
Sets the value of secret_key_ref.
§Example
ⓘ
use google_cloud_run_v2::model::SecretKeySelector;
let x = EnvVarSource::new().set_secret_key_ref(SecretKeySelector::default()/* use setters */);Sourcepub fn set_or_clear_secret_key_ref<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecretKeySelector>,
pub fn set_or_clear_secret_key_ref<T>(self, v: Option<T>) -> Selfwhere
T: Into<SecretKeySelector>,
Sets or clears the value of secret_key_ref.
§Example
ⓘ
use google_cloud_run_v2::model::SecretKeySelector;
let x = EnvVarSource::new().set_or_clear_secret_key_ref(Some(SecretKeySelector::default()/* use setters */));
let x = EnvVarSource::new().set_or_clear_secret_key_ref(None::<SecretKeySelector>);Trait Implementations§
Source§impl Clone for EnvVarSource
impl Clone for EnvVarSource
Source§fn clone(&self) -> EnvVarSource
fn clone(&self) -> EnvVarSource
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 EnvVarSource
impl Debug for EnvVarSource
Source§impl Default for EnvVarSource
impl Default for EnvVarSource
Source§fn default() -> EnvVarSource
fn default() -> EnvVarSource
Returns the “default value” for a type. Read more
Source§impl Message for EnvVarSource
impl Message for EnvVarSource
Source§impl PartialEq for EnvVarSource
impl PartialEq for EnvVarSource
impl StructuralPartialEq for EnvVarSource
Auto Trait Implementations§
impl Freeze for EnvVarSource
impl RefUnwindSafe for EnvVarSource
impl Send for EnvVarSource
impl Sync for EnvVarSource
impl Unpin for EnvVarSource
impl UnwindSafe for EnvVarSource
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