#[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 ==
.