pub struct SecretKeySelector {
pub key: Option<String>,
pub local_object_reference: Option<LocalObjectReference>,
pub name: Option<String>,
pub optional: Option<bool>,
}
Expand description
SecretKeySelector selects a key of a Secret.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key: Option<String>
Required. A Cloud Secret Manager secret version. Must be ‘latest’ for the latest version, an integer for a specific version, or a version alias. The key of the secret to select from. Must be a valid secret key.
local_object_reference: Option<LocalObjectReference>
This field should not be used directly as it is meant to be inlined directly into the message. Use the “name” field instead.
name: Option<String>
The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects//secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation. The name of the secret in the pod’s namespace to select from.
optional: Option<bool>
Specify whether the Secret or its key must be defined.
Trait Implementations§
Source§impl Clone for SecretKeySelector
impl Clone for SecretKeySelector
Source§fn clone(&self) -> SecretKeySelector
fn clone(&self) -> SecretKeySelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl<'de> Deserialize<'de> for SecretKeySelector
impl<'de> Deserialize<'de> for SecretKeySelector
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 SecretKeySelector
impl Serialize for SecretKeySelector
impl Part 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
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