#[non_exhaustive]pub struct SecretSyncConfig {
pub enabled: Option<bool>,
pub rotation_config: Option<SyncRotationConfig>,
/* private fields */
}Expand description
Configuration for sync Secret Manager secrets as k8s secrets.
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.enabled: Option<bool>Enable/Disable Secret Sync Config.
rotation_config: Option<SyncRotationConfig>Rotation config for secret manager.
Implementations§
Source§impl SecretSyncConfig
impl SecretSyncConfig
Sourcepub fn set_enabled<T>(self, v: T) -> Self
pub fn set_enabled<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
Sourcepub fn set_rotation_config<T>(self, v: T) -> Selfwhere
T: Into<SyncRotationConfig>,
pub fn set_rotation_config<T>(self, v: T) -> Selfwhere
T: Into<SyncRotationConfig>,
Sets the value of rotation_config.
§Example
ⓘ
use google_cloud_container_v1::model::secret_sync_config::SyncRotationConfig;
let x = SecretSyncConfig::new().set_rotation_config(SyncRotationConfig::default()/* use setters */);Sourcepub fn set_or_clear_rotation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SyncRotationConfig>,
pub fn set_or_clear_rotation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SyncRotationConfig>,
Sets or clears the value of rotation_config.
§Example
ⓘ
use google_cloud_container_v1::model::secret_sync_config::SyncRotationConfig;
let x = SecretSyncConfig::new().set_or_clear_rotation_config(Some(SyncRotationConfig::default()/* use setters */));
let x = SecretSyncConfig::new().set_or_clear_rotation_config(None::<SyncRotationConfig>);Trait Implementations§
Source§impl Clone for SecretSyncConfig
impl Clone for SecretSyncConfig
Source§fn clone(&self) -> SecretSyncConfig
fn clone(&self) -> SecretSyncConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretSyncConfig
impl Debug for SecretSyncConfig
Source§impl Default for SecretSyncConfig
impl Default for SecretSyncConfig
Source§fn default() -> SecretSyncConfig
fn default() -> SecretSyncConfig
Returns the “default value” for a type. Read more
Source§impl Message for SecretSyncConfig
impl Message for SecretSyncConfig
Source§impl PartialEq for SecretSyncConfig
impl PartialEq for SecretSyncConfig
Source§fn eq(&self, other: &SecretSyncConfig) -> bool
fn eq(&self, other: &SecretSyncConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecretSyncConfig
Auto Trait Implementations§
impl Freeze for SecretSyncConfig
impl RefUnwindSafe for SecretSyncConfig
impl Send for SecretSyncConfig
impl Sync for SecretSyncConfig
impl Unpin for SecretSyncConfig
impl UnsafeUnpin for SecretSyncConfig
impl UnwindSafe for SecretSyncConfig
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