/
githubmirror
/
meilisearch
Обзор
Документация
Войти
/
githubmirror
/
meilisearch
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
crates/dump/src/reader/v3/errors.rs
52 строки
1007 B
Clément Renault
Move crates under a sub folder to clean up the code
21 окт 2024, 09:18
Не верифицирован
21 окт 2024, 09:18
9c1e54a
Код
Авторство
О чём код?
use serde::{Deserialize, Serialize}; #[allow(clippy::enum_variant_names)] #[derive(Serialize, Deserialize, Debug, Clone, Copy)] pub enum Code { // index related error CreateIndex, IndexAlreadyExists, IndexNotFound, InvalidIndexUid, // invalid state error InvalidState, MissingPrimaryKey, PrimaryKeyAlreadyPresent, MaxFieldsLimitExceeded, MissingDocumentId, InvalidDocumentId, Filter, Sort, BadParameter, BadRequest, DatabaseSizeLimitReached, DocumentNotFound, Internal, InvalidGeoField, InvalidRankingRule, InvalidStore, InvalidToken, MissingAuthorizationHeader, NoSpaceLeftOnDevice, DumpNotFound, TaskNotFound, PayloadTooLarge, RetrieveDocument, SearchDocuments, UnsupportedMediaType, DumpAlreadyInProgress, DumpProcessFailed, InvalidContentType, MissingContentType, MalformedPayload, MissingPayload, MalformedDump, UnretrievableErrorCode, }