#[non_exhaustive]pub struct SecretManagerSource {
pub secret_version: String,
/* private fields */
}
Expand description
Configuration for secrets stored in Google 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.secret_version: String
Required. The name of the Secret Version containing the encryption key in
the following format:
projects/{project}/secrets/{secret_id}/versions/{version_number}
Note that only numbered versions are supported. Aliases like “latest” are not supported.
Implementations§
Source§impl SecretManagerSource
impl SecretManagerSource
pub fn new() -> Self
Sourcepub fn set_secret_version<T: Into<String>>(self, v: T) -> Self
pub fn set_secret_version<T: Into<String>>(self, v: T) -> Self
Sets the value of secret_version.
Trait Implementations§
Source§impl Clone for SecretManagerSource
impl Clone for SecretManagerSource
Source§fn clone(&self) -> SecretManagerSource
fn clone(&self) -> SecretManagerSource
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 SecretManagerSource
impl Debug for SecretManagerSource
Source§impl Default for SecretManagerSource
impl Default for SecretManagerSource
Source§fn default() -> SecretManagerSource
fn default() -> SecretManagerSource
Returns the “default value” for a type. Read more
Source§impl Message for SecretManagerSource
impl Message for SecretManagerSource
Source§impl PartialEq for SecretManagerSource
impl PartialEq for SecretManagerSource
impl StructuralPartialEq for SecretManagerSource
Auto Trait Implementations§
impl Freeze for SecretManagerSource
impl RefUnwindSafe for SecretManagerSource
impl Send for SecretManagerSource
impl Sync for SecretManagerSource
impl Unpin for SecretManagerSource
impl UnwindSafe for SecretManagerSource
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