#[non_exhaustive]pub struct CollectionErrorDetail {
pub id: Option<String>,
pub name: 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
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
If the request contains collection IDs, the response includes the IDs provided in the request.
name: Option<String>
If the request contains collection names, the response includes the names provided in the request.
error_message: Option<String>
A description of the error. For example, The specified Collection is not found.
error_code: Option<String>
The error code for the request. For example, NOT_FOUND
.
Implementations§
source§impl CollectionErrorDetail
impl CollectionErrorDetail
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
If the request contains collection IDs, the response includes the IDs provided in the request.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
If the request contains collection names, the response includes the names provided in the request.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
A description of the error. For example, The specified Collection is not found.
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code for the request. For example, NOT_FOUND
.
source§impl CollectionErrorDetail
impl CollectionErrorDetail
sourcepub fn builder() -> CollectionErrorDetailBuilder
pub fn builder() -> CollectionErrorDetailBuilder
Creates a new builder-style object to manufacture CollectionErrorDetail
.
Trait Implementations§
source§impl Clone for CollectionErrorDetail
impl Clone for CollectionErrorDetail
source§fn clone(&self) -> CollectionErrorDetail
fn clone(&self) -> CollectionErrorDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CollectionErrorDetail
impl Debug for CollectionErrorDetail
source§impl PartialEq for CollectionErrorDetail
impl PartialEq for CollectionErrorDetail
source§fn eq(&self, other: &CollectionErrorDetail) -> bool
fn eq(&self, other: &CollectionErrorDetail) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CollectionErrorDetail
Auto Trait Implementations§
impl Freeze for CollectionErrorDetail
impl RefUnwindSafe for CollectionErrorDetail
impl Send for CollectionErrorDetail
impl Sync for CollectionErrorDetail
impl Unpin for CollectionErrorDetail
impl UnwindSafe for CollectionErrorDetail
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