#[non_exhaustive]pub struct EffectiveLifecyclePolicyErrorDetail {
pub type: Option<LifecyclePolicyType>,
pub resource: Option<String>,
pub error_message: Option<String>,
pub error_code: Option<String>,
}
Expand description
Error information for an OpenSearch Serverless request.
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.type: Option<LifecyclePolicyType>
The type of lifecycle policy.
resource: Option<String>
The name of OpenSearch Serverless index resource.
error_message: Option<String>
A description of the error. For example, The specified Index resource is not found
.
error_code: Option<String>
The error code for the request.
Implementations§
source§impl EffectiveLifecyclePolicyErrorDetail
impl EffectiveLifecyclePolicyErrorDetail
sourcepub fn type(&self) -> Option<&LifecyclePolicyType>
pub fn type(&self) -> Option<&LifecyclePolicyType>
The type of lifecycle policy.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
A description of the error. For example, The specified Index resource is not found
.
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code for the request.
source§impl EffectiveLifecyclePolicyErrorDetail
impl EffectiveLifecyclePolicyErrorDetail
sourcepub fn builder() -> EffectiveLifecyclePolicyErrorDetailBuilder
pub fn builder() -> EffectiveLifecyclePolicyErrorDetailBuilder
Creates a new builder-style object to manufacture EffectiveLifecyclePolicyErrorDetail
.
Trait Implementations§
source§impl Clone for EffectiveLifecyclePolicyErrorDetail
impl Clone for EffectiveLifecyclePolicyErrorDetail
source§fn clone(&self) -> EffectiveLifecyclePolicyErrorDetail
fn clone(&self) -> EffectiveLifecyclePolicyErrorDetail
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 PartialEq for EffectiveLifecyclePolicyErrorDetail
impl PartialEq for EffectiveLifecyclePolicyErrorDetail
source§fn eq(&self, other: &EffectiveLifecyclePolicyErrorDetail) -> bool
fn eq(&self, other: &EffectiveLifecyclePolicyErrorDetail) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EffectiveLifecyclePolicyErrorDetail
Auto Trait Implementations§
impl Freeze for EffectiveLifecyclePolicyErrorDetail
impl RefUnwindSafe for EffectiveLifecyclePolicyErrorDetail
impl Send for EffectiveLifecyclePolicyErrorDetail
impl Sync for EffectiveLifecyclePolicyErrorDetail
impl Unpin for EffectiveLifecyclePolicyErrorDetail
impl UnwindSafe for EffectiveLifecyclePolicyErrorDetail
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.