#[non_exhaustive]pub struct SecretEnvVar {
pub name: String,
pub secret_ref: Option<SecretRef>,
/* private fields */
}Available on crate feature
reasoning-engine-service only.Expand description
Represents an environment variable where the value is a secret in Cloud Secret Manager.
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.name: StringRequired. Name of the secret environment variable.
secret_ref: Option<SecretRef>Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable.
Implementations§
Source§impl SecretEnvVar
impl SecretEnvVar
pub fn new() -> Self
Sourcepub fn set_secret_ref<T>(self, v: T) -> Self
pub fn set_secret_ref<T>(self, v: T) -> Self
Sets the value of secret_ref.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::SecretRef;
let x = SecretEnvVar::new().set_secret_ref(SecretRef::default()/* use setters */);Sourcepub fn set_or_clear_secret_ref<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_secret_ref<T>(self, v: Option<T>) -> Self
Sets or clears the value of secret_ref.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::SecretRef;
let x = SecretEnvVar::new().set_or_clear_secret_ref(Some(SecretRef::default()/* use setters */));
let x = SecretEnvVar::new().set_or_clear_secret_ref(None::<SecretRef>);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