Struct aws_sdk_rbin::types::RuleSummary
source · #[non_exhaustive]pub struct RuleSummary {
pub identifier: Option<String>,
pub description: Option<String>,
pub retention_period: Option<RetentionPeriod>,
pub lock_state: Option<LockState>,
pub rule_arn: Option<String>,
}
Expand description
Information about a Recycle Bin retention rule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.identifier: Option<String>
The unique ID of the retention rule.
description: Option<String>
The retention rule description.
retention_period: Option<RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
lock_state: Option<LockState>
The lock state for the retention rule.
-
locked
- The retention rule is locked and can't be modified or deleted. -
pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
rule_arn: Option<String>
The Amazon Resource Name (ARN) of the retention rule.
Implementations§
source§impl RuleSummary
impl RuleSummary
sourcepub fn identifier(&self) -> Option<&str>
pub fn identifier(&self) -> Option<&str>
The unique ID of the retention rule.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The retention rule description.
sourcepub fn retention_period(&self) -> Option<&RetentionPeriod>
pub fn retention_period(&self) -> Option<&RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
sourcepub fn lock_state(&self) -> Option<&LockState>
pub fn lock_state(&self) -> Option<&LockState>
The lock state for the retention rule.
-
locked
- The retention rule is locked and can't be modified or deleted. -
pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
source§impl RuleSummary
impl RuleSummary
sourcepub fn builder() -> RuleSummaryBuilder
pub fn builder() -> RuleSummaryBuilder
Creates a new builder-style object to manufacture RuleSummary
.
Trait Implementations§
source§impl Clone for RuleSummary
impl Clone for RuleSummary
source§fn clone(&self) -> RuleSummary
fn clone(&self) -> RuleSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleSummary
impl Debug for RuleSummary
source§impl PartialEq for RuleSummary
impl PartialEq for RuleSummary
source§fn eq(&self, other: &RuleSummary) -> bool
fn eq(&self, other: &RuleSummary) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleSummary
Auto Trait Implementations§
impl Freeze for RuleSummary
impl RefUnwindSafe for RuleSummary
impl Send for RuleSummary
impl Sync for RuleSummary
impl Unpin for RuleSummary
impl UnwindSafe for RuleSummary
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more