Enum meilisearch_sdk::errors::ErrorType [−][src]
#[non_exhaustive]
pub enum ErrorType {
InvalidRequest,
Internal,
Authentication,
}Expand description
The type of error that was encountered.
Variants (Non-exhaustive)
This enum is marked as 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
Converts the error type to the string representation returned by MeiliSearch.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorTypeimpl UnwindSafe for ErrorTypeBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more