#[non_exhaustive]pub struct EffectiveLifecyclePolicyDetail {
pub type: Option<LifecyclePolicyType>,
pub resource: Option<String>,
pub policy_name: Option<String>,
pub resource_type: Option<ResourceType>,
pub retention_period: Option<String>,
pub no_min_retention_period: Option<bool>,
}
Expand description
Error information for an OpenSearch Serverless request.
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.type: Option<LifecyclePolicyType>
The type of lifecycle policy.
resource: Option<String>
The name of the OpenSearch Serverless index resource.
policy_name: Option<String>
The name of the lifecycle policy.
resource_type: Option<ResourceType>
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
retention_period: Option<String>
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
no_min_retention_period: Option<bool>
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
Implementations§
source§impl EffectiveLifecyclePolicyDetail
impl EffectiveLifecyclePolicyDetail
sourcepub fn type(&self) -> Option<&LifecyclePolicyType>
pub fn type(&self) -> Option<&LifecyclePolicyType>
The type of lifecycle policy.
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the lifecycle policy.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
sourcepub fn retention_period(&self) -> Option<&str>
pub fn retention_period(&self) -> Option<&str>
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
sourcepub fn no_min_retention_period(&self) -> Option<bool>
pub fn no_min_retention_period(&self) -> Option<bool>
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
source§impl EffectiveLifecyclePolicyDetail
impl EffectiveLifecyclePolicyDetail
sourcepub fn builder() -> EffectiveLifecyclePolicyDetailBuilder
pub fn builder() -> EffectiveLifecyclePolicyDetailBuilder
Creates a new builder-style object to manufacture EffectiveLifecyclePolicyDetail
.
Trait Implementations§
source§impl Clone for EffectiveLifecyclePolicyDetail
impl Clone for EffectiveLifecyclePolicyDetail
source§fn clone(&self) -> EffectiveLifecyclePolicyDetail
fn clone(&self) -> EffectiveLifecyclePolicyDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for EffectiveLifecyclePolicyDetail
impl PartialEq for EffectiveLifecyclePolicyDetail
source§fn eq(&self, other: &EffectiveLifecyclePolicyDetail) -> bool
fn eq(&self, other: &EffectiveLifecyclePolicyDetail) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EffectiveLifecyclePolicyDetail
Auto Trait Implementations§
impl Freeze for EffectiveLifecyclePolicyDetail
impl RefUnwindSafe for EffectiveLifecyclePolicyDetail
impl Send for EffectiveLifecyclePolicyDetail
impl Sync for EffectiveLifecyclePolicyDetail
impl Unpin for EffectiveLifecyclePolicyDetail
impl UnwindSafe for EffectiveLifecyclePolicyDetail
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> 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