#[non_exhaustive]pub struct SyncRotationConfig {
pub enabled: Option<bool>,
pub rotation_interval: Option<Duration>,
/* private fields */
}Expand description
SyncRotationConfig is config for secret manager auto rotation.
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>Whether the rotation is enabled.
rotation_interval: Option<Duration>The interval between two consecutive rotations. Default rotation interval is 2 minutes.
Implementations§
Source§impl SyncRotationConfig
impl SyncRotationConfig
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_interval<T>(self, v: T) -> Self
pub fn set_rotation_interval<T>(self, v: T) -> Self
Sets the value of rotation_interval.
§Example
ⓘ
use wkt::Duration;
let x = SyncRotationConfig::new().set_rotation_interval(Duration::default()/* use setters */);Sourcepub fn set_or_clear_rotation_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_rotation_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of rotation_interval.
§Example
ⓘ
use wkt::Duration;
let x = SyncRotationConfig::new().set_or_clear_rotation_interval(Some(Duration::default()/* use setters */));
let x = SyncRotationConfig::new().set_or_clear_rotation_interval(None::<Duration>);Trait Implementations§
Source§impl Clone for SyncRotationConfig
impl Clone for SyncRotationConfig
Source§fn clone(&self) -> SyncRotationConfig
fn clone(&self) -> SyncRotationConfig
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 SyncRotationConfig
impl Debug for SyncRotationConfig
Source§impl Default for SyncRotationConfig
impl Default for SyncRotationConfig
Source§fn default() -> SyncRotationConfig
fn default() -> SyncRotationConfig
Returns the “default value” for a type. Read more
Source§impl Message for SyncRotationConfig
impl Message for SyncRotationConfig
Source§impl PartialEq for SyncRotationConfig
impl PartialEq for SyncRotationConfig
impl StructuralPartialEq for SyncRotationConfig
Auto Trait Implementations§
impl Freeze for SyncRotationConfig
impl RefUnwindSafe for SyncRotationConfig
impl Send for SyncRotationConfig
impl Sync for SyncRotationConfig
impl Unpin for SyncRotationConfig
impl UnsafeUnpin for SyncRotationConfig
impl UnwindSafe for SyncRotationConfig
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