Struct aws_sdk_drs::types::PitPolicyRule
source · #[non_exhaustive]pub struct PitPolicyRule {
pub rule_id: i64,
pub units: PitPolicyRuleUnits,
pub interval: i32,
pub retention_duration: i32,
pub enabled: Option<bool>,
}Expand description
A rule in the Point in Time (PIT) policy representing when to take snapshots and how long to retain them for.
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.rule_id: i64The ID of the rule.
units: PitPolicyRuleUnitsThe units used to measure the interval and retentionDuration.
interval: i32How often, in the chosen units, a snapshot should be taken.
retention_duration: i32The duration to retain a snapshot for, in the chosen units.
enabled: Option<bool>Whether this rule is enabled or not.
Implementations§
source§impl PitPolicyRule
impl PitPolicyRule
sourcepub fn units(&self) -> &PitPolicyRuleUnits
pub fn units(&self) -> &PitPolicyRuleUnits
The units used to measure the interval and retentionDuration.
sourcepub fn retention_duration(&self) -> i32
pub fn retention_duration(&self) -> i32
The duration to retain a snapshot for, in the chosen units.
source§impl PitPolicyRule
impl PitPolicyRule
sourcepub fn builder() -> PitPolicyRuleBuilder
pub fn builder() -> PitPolicyRuleBuilder
Creates a new builder-style object to manufacture PitPolicyRule.
Trait Implementations§
source§impl Clone for PitPolicyRule
impl Clone for PitPolicyRule
source§fn clone(&self) -> PitPolicyRule
fn clone(&self) -> PitPolicyRule
Returns a copy 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 PitPolicyRule
impl Debug for PitPolicyRule
source§impl PartialEq for PitPolicyRule
impl PartialEq for PitPolicyRule
source§fn eq(&self, other: &PitPolicyRule) -> bool
fn eq(&self, other: &PitPolicyRule) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PitPolicyRule
Auto Trait Implementations§
impl RefUnwindSafe for PitPolicyRule
impl Send for PitPolicyRule
impl Sync for PitPolicyRule
impl Unpin for PitPolicyRule
impl UnwindSafe for PitPolicyRule
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
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>
Creates a shared type from an unshared type.