#[non_exhaustive]pub struct RotationConfig {
pub enabled: Option<bool>,
pub rotation_interval: Option<Duration>,
/* private fields */
}Expand description
RotationConfig 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 RotationConfig
impl RotationConfig
pub fn new() -> Self
Sourcepub fn set_enabled<T>(self, v: T) -> Self
pub fn set_enabled<T>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of enabled.
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.
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.
Trait Implementations§
Source§impl Clone for RotationConfig
impl Clone for RotationConfig
Source§fn clone(&self) -> RotationConfig
fn clone(&self) -> RotationConfig
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 RotationConfig
impl Debug for RotationConfig
Source§impl Default for RotationConfig
impl Default for RotationConfig
Source§fn default() -> RotationConfig
fn default() -> RotationConfig
Returns the “default value” for a type. Read more
Source§impl Message for RotationConfig
impl Message for RotationConfig
Source§impl PartialEq for RotationConfig
impl PartialEq for RotationConfig
impl StructuralPartialEq for RotationConfig
Auto Trait Implementations§
impl Freeze for RotationConfig
impl RefUnwindSafe for RotationConfig
impl Send for RotationConfig
impl Sync for RotationConfig
impl Unpin for RotationConfig
impl UnwindSafe for RotationConfig
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