Enum meilisearch_sdk::errors::ErrorType [−][src]
#[non_exhaustive]
pub enum ErrorType {
InvalidRequest,
Internal,
Authentication,
}The type of error that was encountered.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The submitted request was invalid.
The MeiliSearch instance encountered an internal error.
Authentication was either incorrect or missing.
Implementations
impl ErrorType[src]
impl ErrorType[src]pub fn as_str(&self) -> &'static str[src]
Converts the error type to the string representation returned by MeiliSearch.
pub fn parse(input: &str) -> Option<Self>[src]
Converts the error type string returned by MeiliSearch into an
ErrorType enum. If the error type input is not recognized, None is
returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorType
impl RefUnwindSafe for ErrorTypeimpl UnwindSafe for ErrorType
impl UnwindSafe for ErrorTypeBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,