pub enum UserError {
Show 56 variants
AttributeLimitReached,
CriterionError(CriterionError),
DocumentLimitReached,
InvalidDocumentId {
document_id: Value,
},
InvalidFacetsDistribution {
invalid_facets_name: BTreeSet<String>,
valid_patterns: BTreeSet<String>,
matching_rule_indices: HashMap<String, usize>,
},
InvalidGeoField(Box<GeoError>),
InvalidVectorDimensions {
expected: usize,
found: usize,
},
InvalidIndexingVectorDimensions {
embedder_name: String,
document_id: String,
embedding_index: usize,
expected: usize,
found: usize,
},
InvalidVectorsMapType {
document_id: String,
value: Value,
},
InvalidVectorsEmbedderConf {
document_id: String,
error: String,
},
InvalidFilter(String),
InvalidFilterExpression(&'static [&'static str], Value),
FilterOperatorNotAllowed {
field: String,
allowed_operators: Vec<String>,
operator: String,
rule_index: usize,
},
InvalidSortableAttribute {
field: String,
valid_fields: BTreeSet<String>,
hidden_fields: bool,
},
InvalidDistinctAttribute {
field: String,
valid_patterns: BTreeSet<String>,
hidden_fields: bool,
matching_rule_index: Option<usize>,
},
InvalidFacetSearchFacetName {
field: String,
valid_patterns: BTreeSet<String>,
hidden_fields: bool,
matching_rule_index: Option<usize>,
},
InvalidSearchableAttribute {
field: String,
valid_fields: BTreeSet<String>,
hidden_fields: bool,
},
EnvAlreadyOpened,
SortRankingRuleMissing,
InvalidStoreFile,
MaxDatabaseSizeReached,
MissingDocumentId {
primary_key: String,
document: Object,
},
TooManyDocumentIds {
primary_key: String,
document: Object,
},
NoPrimaryKeyCandidateFound,
MultiplePrimaryKeyCandidatesFound {
candidates: Vec<String>,
},
NoSpaceLeftOnDevice,
PrimaryKeyCannotBeChanged(String),
SerdeJson(Error),
SortError(SortError),
UnknownInternalDocumentId {
document_id: DocumentId,
},
InvalidMinTypoWordLenSetting(u8, u8),
VectorEmbeddingError(Error),
MissingDocumentField(RenderPromptError),
InvalidPrompt(NewPromptError),
InvalidPromptForEmbeddings(String, NewPromptError),
TooManyEmbedders(usize),
InvalidSearchEmbedder(String),
InvalidSimilarEmbedder(String),
TooManyVectors(String, usize),
InvalidFieldForSource {
embedder_name: String,
source_: EmbedderSource,
context: NestingContext,
field: MetaEmbeddingSetting,
},
InvalidOpenAiModel {
embedder_name: String,
model: String,
},
MissingFieldForSource {
field: &'static str,
source_: EmbedderSource,
embedder_name: String,
},
InvalidOpenAiModelDimensions {
embedder_name: String,
model: &'static str,
dimensions: usize,
expected_dimensions: usize,
},
InvalidOpenAiModelDimensionsMax {
embedder_name: String,
model: &'static str,
dimensions: usize,
max_dimensions: usize,
},
InvalidSourceForNested {
embedder_name: String,
source_: EmbedderSource,
},
MissingSourceForNested {
embedder_name: String,
},
InvalidSettingsEmbedder {
embedder_name: String,
message: String,
},
InvalidSettingsDimensions {
embedder_name: String,
},
InvalidDisableBinaryQuantization {
embedder_name: String,
},
InvalidSettingsDocumentTemplateMaxBytes {
embedder_name: String,
},
InvalidUrl {
embedder_name: String,
inner_error: ParseError,
url: String,
},
DocumentEditionCannotModifyPrimaryKey,
DocumentEditionDocumentMustBeObject,
DocumentEditionRuntimeError(Box<EvalAltResult>),
DocumentEditionCompilationError(ParseError),
DocumentEmbeddingError(String),
}
Variants§
AttributeLimitReached
CriterionError(CriterionError)
DocumentLimitReached
InvalidDocumentId
InvalidFacetsDistribution
Fields
InvalidGeoField(Box<GeoError>)
InvalidVectorDimensions
InvalidIndexingVectorDimensions
Fields
InvalidVectorsMapType
InvalidVectorsEmbedderConf
InvalidFilter(String)
InvalidFilterExpression(&'static [&'static str], Value)
FilterOperatorNotAllowed
InvalidSortableAttribute
InvalidDistinctAttribute
InvalidFacetSearchFacetName
InvalidSearchableAttribute
EnvAlreadyOpened
SortRankingRuleMissing
InvalidStoreFile
MaxDatabaseSizeReached
MissingDocumentId
TooManyDocumentIds
NoPrimaryKeyCandidateFound
MultiplePrimaryKeyCandidatesFound
NoSpaceLeftOnDevice
PrimaryKeyCannotBeChanged(String)
SerdeJson(Error)
SortError(SortError)
UnknownInternalDocumentId
Fields
§
document_id: DocumentId
InvalidMinTypoWordLenSetting(u8, u8)
VectorEmbeddingError(Error)
MissingDocumentField(RenderPromptError)
InvalidPrompt(NewPromptError)
InvalidPromptForEmbeddings(String, NewPromptError)
TooManyEmbedders(usize)
InvalidSearchEmbedder(String)
InvalidSimilarEmbedder(String)
TooManyVectors(String, usize)
InvalidFieldForSource
InvalidOpenAiModel
MissingFieldForSource
InvalidOpenAiModelDimensions
InvalidOpenAiModelDimensionsMax
InvalidSourceForNested
MissingSourceForNested
InvalidSettingsEmbedder
InvalidSettingsDimensions
InvalidDisableBinaryQuantization
InvalidSettingsDocumentTemplateMaxBytes
InvalidUrl
DocumentEditionCannotModifyPrimaryKey
DocumentEditionDocumentMustBeObject
DocumentEditionRuntimeError(Box<EvalAltResult>)
DocumentEditionCompilationError(ParseError)
DocumentEmbeddingError(String)
Trait Implementations§
Source§impl Error for UserError
impl Error for UserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CriterionError> for UserError
impl From<CriterionError> for UserError
Source§fn from(source: CriterionError) -> Self
fn from(source: CriterionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserError
impl !RefUnwindSafe for UserError
impl Send for UserError
impl Sync for UserError
impl Unpin for UserError
impl !UnwindSafe for UserError
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.