pub enum QueryValidationError {
EmptySelection,
TooManySelections {
maximum: usize,
},
EmptySelector,
InvalidContentSelector,
InvalidReferenceProjection(&'static str),
InvalidEntryKinds,
EmptyEntry,
InvalidViewSelector {
field: &'static str,
error: ScopeTextError,
},
InvalidSearch(SearchError),
InvalidExplanation(ExplanationError),
}Expand description
Invalid query view, independent of source acquisition.
Variants§
EmptySelection
Excerpt projection was requested without selectors.
TooManySelections
Excerpt projection exceeded the closed selector-count bound.
EmptySelector
An excerpt selector was empty.
InvalidContentSelector
An explicit local selector violated its path/ID grammar or byte limit.
InvalidReferenceProjection(&'static str)
Reference inventory policy violated its closed bounds.
InvalidEntryKinds
A role-filtered outline contained no kinds or exceeded the closed kind family.
EmptyEntry
An explanation entry name was empty.
InvalidViewSelector
A node or semantic-entry selector violated the bounded request contract.
Fields
§
error: ScopeTextErrorPrecise bound or character violation.
InvalidSearch(SearchError)
Search configuration failed validation.
InvalidExplanation(ExplanationError)
Explanation configuration failed validation or had no readable content.
Trait Implementations§
Source§impl Clone for QueryValidationError
impl Clone for QueryValidationError
Source§fn clone(&self) -> QueryValidationError
fn clone(&self) -> QueryValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryValidationError
impl Debug for QueryValidationError
Source§impl Display for QueryValidationError
impl Display for QueryValidationError
impl Eq for QueryValidationError
Source§impl Error for QueryValidationError
impl Error for QueryValidationError
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<QueryValidationError> for QueryError
impl From<QueryValidationError> for QueryError
Source§fn from(error: QueryValidationError) -> Self
fn from(error: QueryValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QueryValidationError
impl PartialEq for QueryValidationError
impl StructuralPartialEq for QueryValidationError
Auto Trait Implementations§
impl Freeze for QueryValidationError
impl RefUnwindSafe for QueryValidationError
impl Send for QueryValidationError
impl Sync for QueryValidationError
impl Unpin for QueryValidationError
impl UnsafeUnpin for QueryValidationError
impl UnwindSafe for QueryValidationError
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